ironman5366 / W.I.L.L

A python written personal assistant
https://willbeddow.com
MIT License
377 stars 58 forks source link

Program doesn't exit on Ctrl+C #12

Closed vms20591 closed 8 years ago

vms20591 commented 8 years ago

@ironman5366 The main script doesn't exit even after issuing Ctrl+C and noticed that the thread used to execute Slack rtm reader wasn't marked as daemon.

W.I.L.L/main.py


logs.write("Debug value is {0}".format(debugval), 'working')
logs.write("Connecting to rtm socket", 'trying')
t = threading.Thread(target=slack)
t.start()
logs.write("Starting flask server on localhost", 'trying')
print app.run(debug=debugval, use_reloader=False)

Setting the thread as daemon would fix the issue.

ironman5366 commented 8 years ago

I merged the daemon pull request and it should be fixed now

vms20591 commented 8 years ago

Thanks :)