Commit 3540a9e7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed problem when removing a session while the server is shutting down.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1026 b35dd754-fafc-0310-a699-88a17e54d16e
parent 767c7a70
...@@ -894,7 +894,9 @@ public class SessionManager extends BasicModule { ...@@ -894,7 +894,9 @@ public class SessionManager extends BasicModule {
public void removeSession(ClientSession session) { public void removeSession(ClientSession session) {
// TODO: Requires better error checking to ensure the session count is maintained // TODO: Requires better error checking to ensure the session count is maintained
// TODO: properly (removal actually does remove). // TODO: properly (removal actually does remove).
if (session == null) { // Do nothing if session is null or if the server is shutting down. Note: When the server
// is shutting down the serverName will be null.
if (session == null || serverName == null) {
return; return;
} }
SessionMap sessionMap = null; SessionMap sessionMap = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment