mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Remove hack, this is a manifestation of https://github.com/gui-cs/Terminal.Gui/issues/3812
This commit is contained in:
@@ -1685,11 +1685,6 @@ internal class NetMainLoop : IMainLoopDriver
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user