Lobby no longer glitches out when a person disconnects and reconnects without restarting the program #story[1188]
This commit is contained in:
@@ -468,7 +468,15 @@ public class ServerConnection implements RunnableWithFramePeriod {
|
||||
this.visualiserRaceControllerThread.interrupt();
|
||||
}
|
||||
|
||||
|
||||
if (this.socket != null) {
|
||||
try {
|
||||
this.socket.getInputStream().close();
|
||||
this.socket.getOutputStream().close();
|
||||
this.socket.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
//TODO input controller?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user