Changeset 4749 for branches/release-0.13.x/pfixcore
- Timestamp:
- 07/27/09 14:56:35 (3 years ago)
- Location:
- branches/release-0.13.x/pfixcore
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/de/schlund/pfixcore/workflow/context/SessionContextImpl.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-0.13.x/pfixcore/ChangeLog
r4703 r4749 1 2009-07-27 Martin Leidig <mleidig@schlund.de> 2 3 Fixed possible deadlock within SessionEndNotificator when 4 one thread adds a SessionListener after getting a lock to an 5 application object, while another thread is invalidating 6 the session and calls a registered SessionListener, which itself 7 tries to lock the same application object. 8 1 9 2009-07-09 Martin Leidig <mleidig@schlund.de> 2 10 -
branches/release-0.13.x/pfixcore/src/de/schlund/pfixcore/workflow/context/SessionContextImpl.java
r4200 r4749 61 61 // Send event to registered listeners 62 62 try { 63 SessionStatusListener[] currentListeners; 63 64 synchronized (this) { 64 for (SessionStatusListener l : sessionListeners) { 65 l.sessionStatusChanged(new SessionStatusEvent(SessionStatusEvent.Type.SESSION_DESTROYED)); 66 } 65 currentListeners = new SessionStatusListener[sessionListeners.size()]; 66 sessionListeners.toArray(currentListeners); 67 } 68 for (SessionStatusListener l : currentListeners) { 69 l.sessionStatusChanged(new SessionStatusEvent(SessionStatusEvent.Type.SESSION_DESTROYED)); 67 70 } 68 71 } catch(Throwable t) {
