add exit messages and make sure we dont trigger some weird threading keyError that happens on python clean up by calling monkey patching as first import

This commit is contained in:
Jan Klopper 2016-06-22 12:44:44 +02:00
parent 9b6190b186
commit 9cfae29dc7
2 changed files with 13 additions and 4 deletions

View file

@ -49,4 +49,7 @@ def RunClient():
if __name__ == '__main__':
# if this script is called from the command line, and thus not imported
# start a client and start sending messages
RunClient()
try:
RunClient()
except KeyboardInterrupt:
print 'Closing client'