mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fix for disconnect causing instant loss (#13390)
This commit is contained in:
parent
b6667d7e45
commit
cdebbe151b
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ public final class Main {
|
||||||
// no need to keep session
|
// no need to keep session
|
||||||
logger.info("CLIENT DISCONNECTED - " + sessionInfo);
|
logger.info("CLIENT DISCONNECTED - " + sessionInfo);
|
||||||
logger.debug("- cause: client called disconnect command");
|
logger.debug("- cause: client called disconnect command");
|
||||||
managerFactory.sessionManager().disconnect(client.getSessionId(), DisconnectReason.DisconnectedByUser, true);
|
managerFactory.sessionManager().disconnect(client.getSessionId(), DisconnectReason.LostConnection, true);
|
||||||
} else if (throwable == null) {
|
} else if (throwable == null) {
|
||||||
// lease timeout (ping), so server lost connection with a client
|
// lease timeout (ping), so server lost connection with a client
|
||||||
// must keep tables
|
// must keep tables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue