mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
Added catch clause to prevent crash when socket is not opened
This commit is contained in:
@@ -152,6 +152,8 @@ public class SocketServer {
|
||||
user.getWebSocket().getRemote().sendString(json.toJSONString());
|
||||
} catch (NullPointerException | IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IllegalStateException e) {
|
||||
//Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user