stupid dum amy
This commit is contained in:
parent
9b5b2cd5b0
commit
5c0beb61c7
1 changed files with 7 additions and 2 deletions
|
@ -37,6 +37,11 @@ public class Main {
|
||||||
client.set(wsConnectContext);
|
client.set(wsConnectContext);
|
||||||
wsConnectContext.send("connected");
|
wsConnectContext.send("connected");
|
||||||
});
|
});
|
||||||
|
ws.onClose(wsCloseContext -> {
|
||||||
|
if (client.get() != null && client.get().session.equals(wsCloseContext.session)) {
|
||||||
|
client.set(null);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue