Call rtDisconnect after connect timeout.
This commit is contained in:
parent
16c97acf4e
commit
1375ee053c
1 changed files with 10 additions and 0 deletions
|
@ -446,8 +446,18 @@ public class RuffyScripter implements RuffyCommands {
|
||||||
SystemClock.sleep(50);
|
SystemClock.sleep(50);
|
||||||
}
|
}
|
||||||
} catch (CommandException e) {
|
} catch (CommandException e) {
|
||||||
|
try {
|
||||||
|
ruffyService.doRTDisconnect();
|
||||||
|
} catch (RemoteException e1) {
|
||||||
|
log.warn("Disconnect after connect failure failed", e1);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
try {
|
||||||
|
ruffyService.doRTDisconnect();
|
||||||
|
} catch (RemoteException e1) {
|
||||||
|
log.warn("Disconnect after connect failure failed", e1);
|
||||||
|
}
|
||||||
throw new CommandException("Unexpected exception while initiating/restoring pump connection", e);
|
throw new CommandException("Unexpected exception while initiating/restoring pump connection", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue