Don't attempt to start idleDisconnectMonitor again if RS is restarted.
This commit is contained in:
parent
4a1684eb92
commit
a5692d1076
|
@ -57,7 +57,10 @@ public class RuffyScripter {
|
||||||
public void start() {
|
public void start() {
|
||||||
try {
|
try {
|
||||||
ruffyService.addHandler(mHandler);
|
ruffyService.addHandler(mHandler);
|
||||||
idleDisconnectMonitorThread.start();
|
// TODO this'll be done better in v2 via ConnectionManager
|
||||||
|
if (idleDisconnectMonitorThread.getState() == Thread.State.NEW) {
|
||||||
|
idleDisconnectMonitorThread.start();
|
||||||
|
}
|
||||||
started = true;
|
started = true;
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
Loading…
Reference in a new issue