mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Merge pull request #523 from BartolomeoDR/patch-1
[FIX] Fixed issue where user is unable to play/start the modpack after logout
This commit is contained in:
commit
7bcf5f10ab
2 changed files with 7 additions and 2 deletions
|
@ -36,9 +36,14 @@ public class Client {
|
|||
|
||||
public Map<String, String> serializableProperties;
|
||||
|
||||
public transient AtomicInteger refCount = new AtomicInteger(1);
|
||||
public transient AtomicInteger refCount;
|
||||
|
||||
public Client(UUID session) {
|
||||
this(session, 1);
|
||||
}
|
||||
|
||||
public Client(UUID session, int initialRefCount) {
|
||||
refCount = new AtomicInteger(initialRefCount);
|
||||
this.session = session;
|
||||
timestamp = System.currentTimeMillis();
|
||||
type = null;
|
||||
|
|
|
@ -45,7 +45,7 @@ public void execute(ChannelHandlerContext ctx, Client client) {
|
|||
sendError("Exit internal error");
|
||||
return;
|
||||
}
|
||||
Client newClient = new Client(null);
|
||||
Client newClient = new Client(null, 0);
|
||||
newClient.checkSign = client.checkSign;
|
||||
handler.setClient(newClient);
|
||||
AuthSupportExit supportExit = client.auth.core.isSupport(AuthSupportExit.class);
|
||||
|
|
Loading…
Reference in a new issue