User: hiram
Date: 01/01/25 18:10:48
Modified: src/main/org/jbossmq SpySession.java
Log:
Richard Dawson found/debuged/solved a resource leak JBossMQ was causing.
There was a high chance a session's thread would not get disposed after a session
close.
Revision Changes Path
1.2 +6 -2 jbossmq/src/main/org/jbossmq/SpySession.java
Index: SpySession.java
===================================================================
RCS file: /products/cvs/ejboss/jbossmq/src/main/org/jbossmq/SpySession.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SpySession.java 2001/01/26 00:43:35 1.1
+++ SpySession.java 2001/01/26 02:10:48 1.2
@@ -34,7 +34,7 @@
* @author Norbert Lataille ([EMAIL PROTECTED])
* @author Hiram Chirino ([EMAIL PROTECTED])
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
abstract public class SpySession
implements Runnable, Session, XASession
@@ -276,6 +276,10 @@
}
connection.sessionClosing(this);
+
+ // Notify the lock in case it is in wait
+ // Since no new events would occur after the close
+ mutex.notifyLock();
}
@@ -435,4 +439,4 @@
message.producerClientId = connection.getClientID();
return message;
}
-}
\ No newline at end of file
+}