jabber_mirror: Explicitly exit when we encounter an error in the main loop

(imported from commit 19b0f29bfd8c01fa300bdb9db2011bba0b55ddd4)
This commit is contained in:
Zev Benjamin 2014-03-17 13:20:16 -04:00
parent 43ef992ab0
commit 45b90fc33d

View file

@ -426,3 +426,4 @@ option does not affect login credentials.'''.replace("\n", " "))
except BaseException as e: except BaseException as e:
logging.exception("Exception in main loop") logging.exception("Exception in main loop")
xmpp.abort() xmpp.abort()
sys.exit(1)