From 8ded8a41802b7ab0145b37c3f304e49316588362 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 4 Aug 2017 13:46:18 +0200 Subject: [PATCH] Update eventManager.py --- src/fenrir/core/eventManager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fenrir/core/eventManager.py b/src/fenrir/core/eventManager.py index f46c1942..fab6395e 100644 --- a/src/fenrir/core/eventManager.py +++ b/src/fenrir/core/eventManager.py @@ -64,9 +64,7 @@ class eventManager(): def handleStopMainLoop(self, event): self.running.value = 0 time.sleep(0.1) - def stopMainEventLoop(self, Force = False): - if Force: - self.running.value = 0 + def stopMainEventLoop(self): self._eventQueue.put({"Type":fenrirEventType.StopMainLoop,"Data":None}) def cleanEventQueue(self): if self._eventQueue.empty(): @@ -78,7 +76,7 @@ class eventManager(): pass def getEventQueue(self): return self._eventQueue - def getMainLoopRunning(self): + def getRunning(self): return self.running def putToEventQueue(self,event, data): if not isinstance(event, fenrirEventType):