mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 17:19:47 +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 Map<String, String> serializableProperties;
|
||||||
|
|
||||||
public transient AtomicInteger refCount = new AtomicInteger(1);
|
public transient AtomicInteger refCount;
|
||||||
|
|
||||||
public Client(UUID session) {
|
public Client(UUID session) {
|
||||||
|
this(session, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Client(UUID session, int initialRefCount) {
|
||||||
|
refCount = new AtomicInteger(initialRefCount);
|
||||||
this.session = session;
|
this.session = session;
|
||||||
timestamp = System.currentTimeMillis();
|
timestamp = System.currentTimeMillis();
|
||||||
type = null;
|
type = null;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue