summaryrefslogtreecommitdiff
path: root/src/leap/gui
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-05-17 00:45:06 +0900
committerkali <kali@leap.se>2013-05-17 00:45:06 +0900
commit212102f05bbc09b0b6cc6fa250eaafc8f80b6824 (patch)
treeff54d928ae2b3800d3becff80a6a7275134b6ef4 /src/leap/gui
parent1cb931e83522746da668f9a8bb5943aca1882086 (diff)
catch reactor not running error
Diffstat (limited to 'src/leap/gui')
-rw-r--r--src/leap/gui/twisted_main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/gui/twisted_main.py b/src/leap/gui/twisted_main.py
index 44f532a4..871af577 100644
--- a/src/leap/gui/twisted_main.py
+++ b/src/leap/gui/twisted_main.py
@@ -19,6 +19,8 @@ Main functions for integration of twisted reactor
"""
import logging
+from twisted.internet import error
+
# Resist the temptation of putting the import reactor here,
# it will raise an "reactor already imported" error.
@@ -46,4 +48,7 @@ def quit(app):
"""
from twisted.internet import reactor
logger.debug('stopping twisted reactor')
- reactor.stop()
+ try:
+ reactor.stop()
+ except error.ReactorNotRunning:
+ logger.debug('reactor not running')