From 6c5f6544e7d045500744eb11a2b6dcf550c73f57 Mon Sep 17 00:00:00 2001 From: Krzysztof Klinikowski Date: Sat, 6 Mar 2010 15:38:57 +0100 Subject: Fixed some reactor issues in telepathy-sunshine. --- telepathy-sunshine | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'telepathy-sunshine') 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() -- cgit v1.2.3