mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Fixed bug, should fix disconnection issues.
tags : #issue[47]
This commit is contained in:
@@ -338,6 +338,8 @@ public class ClientToServerThread implements Runnable {
|
|||||||
closeSocket();
|
closeSocket();
|
||||||
}
|
}
|
||||||
if (currentByte == -1) {
|
if (currentByte == -1) {
|
||||||
|
notifyDisconnectListeners("Cannot read from server.");
|
||||||
|
closeSocket();
|
||||||
logger.warn("InputStream reach end of stream", 1);
|
logger.warn("InputStream reach end of stream", 1);
|
||||||
}
|
}
|
||||||
return currentByte;
|
return currentByte;
|
||||||
|
|||||||
Reference in New Issue
Block a user