fix webservice reconnection
This commit is contained in:
parent
eec12302ff
commit
2e2c032ad8
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ public class BaseBand {
|
||||||
finishedDisabling = true;
|
finishedDisabling = true;
|
||||||
Chat.print("Unloaded.");
|
Chat.print("Unloaded.");
|
||||||
LOGGER.info("Unloaded.");
|
LOGGER.info("Unloaded.");
|
||||||
}, "ASync Config Updater").start();
|
}, "Async Config Updater").start();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -51,12 +51,12 @@ public class WebServiceClient {
|
||||||
try {
|
try {
|
||||||
outputStream.writeString(JSON.write(keepAlive));
|
outputStream.writeString(JSON.write(keepAlive));
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
inputStream = null;
|
break;
|
||||||
outputStream = null;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
inputStream = null;
|
||||||
|
outputStream = null;
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if(!wasEverConnected) {
|
if(!wasEverConnected) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue