mirror of https://github.com/apache/activemq.git
Added an extra isShutdown() failsafe check when detecting if the checkpoint thread should start
This commit is contained in:
parent
100c5e0b59
commit
91213010b3
|
@ -354,7 +354,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
return;
|
||||
}
|
||||
synchronized (schedulerLock) {
|
||||
if (scheduler == null) {
|
||||
if (scheduler == null || scheduler.isShutdown()) {
|
||||
scheduler = Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue