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:
parent
9b6190b186
commit
9cfae29dc7
2 changed files with 13 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue