Skip to content
Permalink
Browse files

put quit first to avoid an unnecessary warning.

  • Loading branch information...
pabender committed Oct 30, 2018
1 parent 23d2907 commit aa6bb8645bc0f6369aea91171ba1debf9594b8c7
Showing with 4 additions and 4 deletions.
  1. +4 −4 java/src/jmri/jmrit/withrottle/ThrottleController.java
@@ -361,6 +361,10 @@ protected void sendAllMomentaryStates(DccThrottle t) {
* @return true to keep reading in run loop.
*/
public boolean sort(String inPackage) {
if (inPackage.charAt(0) == 'Q') {// If device has Quit.
shutdownThrottle();
return false;
}
if (isAddressSet) {

try {
@@ -481,10 +485,6 @@ public boolean sort(String inPackage) {
break;
}
}
if (inPackage.charAt(0) == 'Q') {// If device has Quit.
shutdownThrottle();
return false;
}
return true;

}

0 comments on commit aa6bb86

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