diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs index 64dbb3b18..2e5e8720a 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs @@ -176,16 +176,15 @@ namespace Terminal.Gui { { UpdatePollMap (); - if (CheckTimers (wait, out var pollTimeout)) { - return true; - } + bool checkTimersResult = CheckTimers (wait, out var pollTimeout); var n = poll (pollmap, (uint)pollmap.Length, pollTimeout); if (n == KEY_RESIZE) { winChanged = true; } - return n >= KEY_RESIZE || CheckTimers (wait, out pollTimeout); + + return checkTimersResult || n >= KEY_RESIZE; } bool CheckTimers (bool wait, out int pollTimeout)