mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-18 02:06:43 +00:00
Added catch clause to prevent crash when socket is not opened
This commit is contained in:
parent
3368268924
commit
80f45f1eb0
@ -152,6 +152,8 @@ public class SocketServer {
|
||||
user.getWebSocket().getRemote().sendString(json.toJSONString());
|
||||
} catch (NullPointerException | IOException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IllegalStateException e) {
|
||||
//Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user