Skip to content

Commit e99140d

Browse files
committed
Remove hack, this is a manifestation of gui-cs#3812
1 parent ccd25cd commit e99140d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Terminal.Gui/ConsoleDrivers/NetDriver.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,11 +1685,6 @@ bool IMainLoopDriver.EventsPending ()
16851685

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

0 commit comments

Comments
 (0)