diff options
Diffstat (limited to 'telepathy-sunshine')
-rwxr-xr-x | telepathy-sunshine | 6 |
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() |