stupid dum amy

This commit is contained in:
amy 2024-11-25 17:00:55 +03:30
parent 9b5b2cd5b0
commit 5c0beb61c7
No known key found for this signature in database

View file

@ -37,6 +37,11 @@ public class Main {
client.set(wsConnectContext);
wsConnectContext.send("connected");
});
ws.onClose(wsCloseContext -> {
if (client.get() != null && client.get().session.equals(wsCloseContext.session)) {
client.set(null);
}
});
});