fix 'hangup' to finish all threads

This commit is contained in:
urlbot
2015-06-20 14:18:50 +02:00
parent 32366f5ce6
commit 0b63a09077
2 changed files with 11 additions and 1 deletions

View File

@@ -314,7 +314,9 @@ if '__main__' == __name__:
while 1:
try:
plugins.event_trigger()
if False == plugins.event_trigger():
xmpp.disconnect()
sys.exit(1)
time.sleep(delay)
except KeyboardInterrupt: