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