Commit d56a194f authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Fix for possible deadlock when closing HTTP sessions. JM-1105

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8950 b35dd754-fafc-0310-a699-88a17e54d16e
parent e9b514e0
......@@ -51,7 +51,7 @@ public class HttpSession extends LocalClientSession {
private int maxPollingInterval;
private long lastPoll = -1;
private Set<SessionListener> listeners = new CopyOnWriteArraySet<SessionListener>();
private boolean isClosed;
private volatile boolean isClosed;
private int inactivityTimeout;
private long lastActivity;
private long lastRequestID;
......@@ -124,7 +124,7 @@ public class HttpSession extends LocalClientSession {
* Closes the session. After a session has been closed it will no longer accept new connections
* on the session ID.
*/
public synchronized void close() {
public void close() {
if (isClosed) {
return;
}
......
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