mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
style: remove some static imports
This commit is contained in:
parent
d61de05eb8
commit
b85d2883e3
11 changed files with 18 additions and 34 deletions
|
|
@ -25,8 +25,6 @@ import java.util.concurrent.locks.ReentrantLock;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import static mage.server.DisconnectReason.LostConnection;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com, JayDi85
|
||||
*/
|
||||
|
|
@ -456,13 +454,13 @@ public class Session {
|
|||
|
||||
// do not send data anymore (user must reconnect)
|
||||
this.valid = false;
|
||||
managerFactory.sessionManager().disconnect(sessionId, LostConnection, true);
|
||||
managerFactory.sessionManager().disconnect(sessionId, DisconnectReason.LostConnection, true);
|
||||
} catch (Throwable ex) {
|
||||
logger.error("SESSION CALLBACK UNKNOWN EXCEPTION - " + ThreadUtils.findRootException(ex) + ", userId " + userId + ", messageId: " + call.getMessageId(), ex);
|
||||
|
||||
// do not send data anymore (user must reconnect)
|
||||
this.valid = false;
|
||||
managerFactory.sessionManager().disconnect(sessionId, LostConnection, true);
|
||||
managerFactory.sessionManager().disconnect(sessionId, DisconnectReason.LostConnection, true);
|
||||
} finally {
|
||||
if (lockSet) {
|
||||
callBackLock.unlock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue