fixed an issue with client freezing

This commit is contained in:
BetaSteward 2011-06-05 09:08:45 -04:00
parent 1ed3f1f4f8
commit 6048ee6538
3 changed files with 18 additions and 8 deletions

View file

@ -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);