Skip to content
Permalink
Browse files

synchronized

  • Loading branch information...
silverailscolo committed Jun 6, 2019
1 parent d142b76 commit f195b83ac100860ea3f28a4e7b282f212d706d14
Showing with 6 additions and 2 deletions.
  1. +6 −2 java/src/jmri/InstanceManager.java
@@ -867,8 +867,12 @@ public static InstanceManager getInstanceManager() {
/**
* Replace the (static) InstanceManager.
*/
public static void resetInstanceManager() {
instanceManager = new InstanceManager();
public synchronized static void resetInstanceManager() {
try {
instanceManager = new InstanceManager();
} catch (Exception e) {
log.error("can't create new InstanceManager");
}
}

}

0 comments on commit f195b83

Please sign in to comment.
You can’t perform that action at this time.