[FIX] Fixed user is unable to play after logout

Right now refCount value is set to 1, and inside handler.setClient its being incremented to 2. Because of that refCount check never goes to 0, and so current session is never stored ( as only single handler has this client, and not two ).
This commit is contained in:
BartolomeoDR 2021-10-16 14:32:57 +03:00 committed by GitHub
parent d1bc03664b
commit af2155c4bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ public void execute(ChannelHandlerContext ctx, Client client) {
sendError("Exit internal error"); sendError("Exit internal error");
return; return;
} }
Client newClient = new Client(null); Client newClient = new Client(null, 0);
newClient.checkSign = client.checkSign; newClient.checkSign = client.checkSign;
handler.setClient(newClient); handler.setClient(newClient);
AuthSupportExit supportExit = client.auth.core.isSupport(AuthSupportExit.class); AuthSupportExit supportExit = client.auth.core.isSupport(AuthSupportExit.class);