Skip to content
Permalink
Browse files

Properly handle EasyDcc shutdown hook

  • Loading branch information...
bobjacobsen committed May 28, 2019
1 parent 2a0fb41 commit 139cad07e01b325ad4cbec44d560ed71e4f1ed52
Showing with 13 additions and 0 deletions.
  1. +13 −0 java/src/jmri/jmrix/easydcc/EasyDccTrafficController.java
@@ -149,6 +149,19 @@ protected boolean endOfMessage(AbstractMRReply msg) {
}
}

/**
* Don't send to-normal-mode message if in normal mode
*/
@Override
protected void terminate() {
if (mCurrentMode == NORMALMODE) {
log.debug("skipping sending normal mode during termination");
return;
} else {
super.terminate();
}
}

private final static Logger log = LoggerFactory.getLogger(EasyDccTrafficController.class);

}

0 comments on commit 139cad0

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