Don't attempt to start idleDisconnectMonitor again if RS is restarted.

This commit is contained in:
Johannes Mockenhaupt 2017-08-05 11:28:53 +02:00
parent 4a1684eb92
commit a5692d1076
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -57,7 +57,10 @@ public class RuffyScripter {
public void start() {
try {
ruffyService.addHandler(mHandler);
// TODO this'll be done better in v2 via ConnectionManager
if (idleDisconnectMonitorThread.getState() == Thread.State.NEW) {
idleDisconnectMonitorThread.start();
}
started = true;
} catch (RemoteException e) {
throw new RuntimeException(e);