forked from External/mage
fixed an issue with client freezing
This commit is contained in:
parent
1ed3f1f4f8
commit
6048ee6538
3 changed files with 18 additions and 8 deletions
|
|
@ -159,7 +159,7 @@ public class Session {
|
|||
}
|
||||
|
||||
private void cleanupSession() {
|
||||
q.clear();
|
||||
q.clearCalls();
|
||||
if (future != null && !future.isDone())
|
||||
future.cancel(true);
|
||||
if (callbackDaemon != null)
|
||||
|
|
@ -497,7 +497,7 @@ public class Session {
|
|||
return handleCall(method);
|
||||
}
|
||||
|
||||
private void handleServerUnavailable(ServerUnavailable ex) {
|
||||
public void handleServerUnavailable(ServerUnavailable ex) {
|
||||
sessionState = SessionState.SERVER_UNAVAILABLE;
|
||||
logger.fatal("server unavailable - ", ex);
|
||||
disconnect(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue