From 106e366424f9e165af9dcd4c151194cb0e12986c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 7 Sep 2019 22:14:21 -0700 Subject: GLK: Fix stalling of event processing loop --- engines/glk/events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/glk') diff --git a/engines/glk/events.cpp b/engines/glk/events.cpp index bb8dc963e3..a1a71fcbe9 100644 --- a/engines/glk/events.cpp +++ b/engines/glk/events.cpp @@ -181,7 +181,8 @@ void Events::pollEvents() { do { checkForNextFrameCounter(); - g_system->getEventManager()->pollEvent(event); + if (!g_system->getEventManager()->pollEvent(event)) + return; switch (event.type) { case Common::EVENT_KEYDOWN: { -- cgit v1.2.3