[ostree] mainloop: Ensure we reset running to True when rerun
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] mainloop: Ensure we reset running to True when rerun
- Date: Sun, 29 Jan 2012 18:30:19 +0000 (UTC)
commit 8c878ebb8690257138ea11a7ceba986ee56f01fe
Author: Colin Walters <walters verbum org>
Date: Sun Jan 29 13:29:31 2012 -0500
mainloop: Ensure we reset running to True when rerun
Otherwise we pretty much exit immediately...
src/ostbuild/pyostbuild/mainloop.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/mainloop.py b/src/ostbuild/pyostbuild/mainloop.py
index cc72fb6..d56010b 100644
--- a/src/ostbuild/pyostbuild/mainloop.py
+++ b/src/ostbuild/pyostbuild/mainloop.py
@@ -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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]