Does not gracefully quit on command
Breakthrough opened this issue · 1 comments
Breakthrough commented
Threads must be terminated/sent to background after seeing a !kill
command, as well as handle restarting (or graceful quitting) when any thread closes/throws an exception.
Breakthrough commented
Threads must be monitored by the main thread (use as a watchdog), and handle any random quits/exceptions thrown by any connection thread (and restart it, if necessary). A message queue can be used to pass the quit/kill command between threads; maybe a unique return value or custom exception can be used as a temporary fix.