Skip to content

Commit

Permalink
dont' create blockmanaagaer, shutdownmanager if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed May 17, 2020
1 parent 7bb90e9 commit 845577e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/test/jmri/util/JUnitUtil.java
Expand Up @@ -742,6 +742,9 @@ public static void initOBlockManager() {
}

public static void deregisterBlockManagerShutdownTask() {
if (! InstanceManager.isInitialized(ShutDownManager.class)) return;
if (! InstanceManager.isInitialized(BlockManager.class)) return;

InstanceManager
.getDefault(ShutDownManager.class)
.deregister(InstanceManager.getDefault(BlockManager.class).shutDownTask);
Expand Down

0 comments on commit 845577e

Please sign in to comment.