JeetShetty / GreenPiThumb

https://mtlynch.io/greenpithumb/
Apache License 2.0
82 stars 12 forks source link

Can't kill GreenPiThumb with Ctrl+C #99

Closed mtlynch closed 7 years ago

mtlynch commented 7 years ago

Because of something weird we're doing with threading, GreenPiThumb doesn't exit when the user performs a KeyboardInterrupt (hits Ctrl+C). It eventually quits on the next poll, but the user can't quit immediately.

I think it's because the main thread is stuck blocking on reading from the record processing queue and can't be interrupted until something comes through.