summaryrefslogtreecommitdiff
path: root/telepathy-sunshine
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-06 15:38:57 +0100
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-06 15:38:57 +0100
commit6c5f6544e7d045500744eb11a2b6dcf550c73f57 (patch)
treea93a4277f4930bb38407c25cf32bffa00b5efc6d /telepathy-sunshine
parent9498e70dbc259b1452d0fcdd6e8718e0e1186dd3 (diff)
Fixed some reactor issues in telepathy-sunshine.
Diffstat (limited to 'telepathy-sunshine')
-rwxr-xr-xtelepathy-sunshine6
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-sunshine b/telepathy-sunshine
index 50b5ae6..af43a93 100755
--- a/telepathy-sunshine
+++ b/telepathy-sunshine
@@ -45,7 +45,8 @@ if __name__ == '__main__':
@async
def quit():
manager.quit()
- reactor.stop()
+ if reactor.running:
+ reactor.stop()
if 'SUNSHINE_PERSIST' not in os.environ:
def timeout_cb():
@@ -73,4 +74,5 @@ if __name__ == '__main__':
reactor.run()
except KeyboardInterrupt:
manager.quit()
- reactor.stop()
+ if reactor.running:
+ reactor.stop()