[FIX] Реализация Exit

This commit is contained in:
Gravit 2020-03-01 14:01:57 +07:00
parent 437da3de59
commit 6af348606b
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -39,6 +39,7 @@ public void execute(ChannelHandlerContext ctx, Client client) throws Exception {
newClient.isSecure = client.isSecure; newClient.isSecure = client.isSecure;
newClient.checkSign = client.checkSign; newClient.checkSign = client.checkSign;
handler.setClient(newClient); handler.setClient(newClient);
if(client.session != 0) server.sessionManager.removeClient(client.session);
if(exitAll) if(exitAll)
{ {
service.channels.forEach((channel) -> { service.channels.forEach((channel) -> {