aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/events.cpp3
1 files changed, 2 insertions, 1 deletions
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: {