Closed Zomis closed 9 years ago
Should be fixed in following commit: https://github.com/Vogel612/JavaBot/commit/043ab5521fb715f42baf8597c227e105adbb3ec7 already ;)
The branch needs some more simmering, but the next PR I open will include a fix for this
There is a shutdown()
method in DefaultBot
, but it is never called from anywhere - and it only shuts down one of the executors (the same one that is shutdown in the finalize method). Perhaps consider adding a void shutdown()
method to the ChatWorker interface? Either way, make sure that the executors are shutdown. (Don't use the finalize
method!)
Thanks!
There are currently two
Executor
s in theAbstractBot
class.One of them (
executor
) is shutdown inside thefinalize
method, which is a bad idea to rely onThe other one,
processingThread
is never shutdown at all, which makes a process running the JavaBot continue running because there is one or more threads that hasn't shutdown completely.