User: pkendall
Date: 01/07/31 14:36:23
Modified: src/main/org/jbossmq/il/oil OILServerILService.java
Log:
Stop a NullPointer infinite loop!
Revision Changes Path
1.5 +6 -3 jbossmq/src/main/org/jbossmq/il/oil/OILServerILService.java
Index: OILServerILService.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/oil/OILServerILService.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- OILServerILService.java 2001/07/28 02:27:36 1.4
+++ OILServerILService.java 2001/07/31 21:36:23 1.5
@@ -45,7 +45,7 @@
* manage the JVM IL.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class OILServerILService extends ServerILJMXService implements
OILServerILServiceMBean, Runnable {
@@ -150,11 +150,14 @@
try {
while( running && socket==null ) {
try {
- socket = serverSocket.accept();
+ socket = serverSocket.accept();
} catch ( java.io.InterruptedIOException e ) {
}
}
-
+
+ if( !running )
+ return;
+
new Thread(this,"OIL Worker").start();
out = new ObjectOutputStream(new
BufferedOutputStream(socket.getOutputStream()));
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development