Skip to content

Cleaning up AbstractBot #39

@Zomis

Description

@Zomis

There are currently two Executors 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions