-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
There are currently two Executor
s in the AbstractBot
class.
protected final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
protected final ExecutorService processingThread = Executors.newSingleThreadExecutor();
One of them (executor
) is shutdown inside the finalize
method, which is a bad idea to rely on
The 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.