Fixed bug, should fix disconnection issues.

tags : #issue[47]
This commit is contained in:
Alistair McIntyre
2017-08-17 14:53:54 +12:00
parent 72a390b484
commit d867a4b7a2
@@ -338,6 +338,8 @@ public class ClientToServerThread implements Runnable {
closeSocket();
}
if (currentByte == -1) {
notifyDisconnectListeners("Cannot read from server.");
closeSocket();
logger.warn("InputStream reach end of stream", 1);
}
return currentByte;