mainloop: Ensure we reset running to True when rerun
Otherwise we pretty much exit immediately...
This commit is contained in:
1 parent
3f4cdb5d9e
commit
8c878ebb86
1 file changed
+1
@@ -85,5 +85,6 @@ class Mainloop(object):
|
||||
self._timeouts[i] = (remaining_ms, callback)
|
||||
|
||||
def run(self):
|
||||
self._running = True
|
||||
while self._running:
|
||||
self.run_once()
|
||||
Reference in new issue
Block a user