https://issues.apache.org/jira/browse/AMQ-5493 - apply patch from pedro with thanks - prevent spurious thread start on shutdown

This commit is contained in:
gtully 2014-12-22 12:44:41 +00:00
parent e16815ad3b
commit 02d974c409
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
after.run();
}
if (checkpointThread != null && !checkpointThread.isAlive()) {
if (checkpointThread != null && !checkpointThread.isAlive() && opened.get()) {
startCheckpoint();
}
return location;