mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
Added an extra isShutdown() failsafe check when detecting if the checkpoint thread should start (cherry picked from commit 91213010b30d426095c16d3fa8d5fa2cafaf05e5)
This commit is contained in:
parent
cd68c42b90
commit
0ba9f9340f
@ -352,7 +352,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…
x
Reference in New Issue
Block a user