Added catch clause to prevent crash when socket is not opened

This commit is contained in:
simon 2018-05-12 19:07:55 -04:00
parent 3368268924
commit 80f45f1eb0

View File

@ -152,6 +152,8 @@ public class SocketServer {
user.getWebSocket().getRemote().sendString(json.toJSONString()); user.getWebSocket().getRemote().sendString(json.toJSONString());
} catch (NullPointerException | IOException e) { } catch (NullPointerException | IOException e) {
e.printStackTrace(); e.printStackTrace();
} catch (IllegalStateException e) {
//Ignore
} }
} }
} }