Skip to content

Commit

Permalink
Remove hack, this is a manifestation of gui-cs#3812
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Nov 10, 2024
1 parent ccd25cd commit e99140d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Terminal.Gui/ConsoleDrivers/NetDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,11 +1685,6 @@ bool IMainLoopDriver.EventsPending ()

if (_mainLoop.CheckTimersAndIdleHandlers (out int waitTimeout))
{
// HACK: CheckTimers returns true even if the timer is not due i.e. it could be
// timer is due to run in 30s interval but even so it return true so we hammer main loop
// this avoids hammer CPU but better fix would be to only return true from CheckTimersAndIdleHandlers
// if the timeout is actually due
Task.Delay (50).Wait (_eventReadyTokenSource.Token);
return true;
}

Expand Down

0 comments on commit e99140d

Please sign in to comment.