mainloop: Ensure we reset running to True when rerun

Otherwise we pretty much exit immediately...
This commit is contained in:
Colin Walters 2012-01-29 13:29:31 -05:00
parent 3f4cdb5d9e
commit 8c878ebb86
1 changed files with 1 additions and 0 deletions

View File

@ -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()