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 0224fe2db6
commit a9e439d9e0
1 changed files with 1 additions and 0 deletions

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)