Minor fix solving a ConcurrentModificationException

This commit is contained in:
Carlos
2021-06-02 22:43:10 +02:00
parent 75a505c63f
commit d593cf379e
5 changed files with 6 additions and 5 deletions

View File

@ -105,6 +105,7 @@ public class WSServer extends WebSocketServer {
try {
conn.send(content.toJSON());
}catch(WebsocketNotConnectedException e) {
LoginManager.getInstance().logOut(conn.getRemoteSocketAddress());
Bukkit.getLogger().warning(Internationalization.getPhrase("error-disconnected-client"));
}