User: pkendall
  Date: 01/07/31 14:36:13

  Modified:    src/main/org/jbossmq/il/uil UILServerILService.java
  Log:
  Stop a NullPointer infinite loop!
  
  Revision  Changes    Path
  1.5       +6 -3      jbossmq/src/main/org/jbossmq/il/uil/UILServerILService.java
  
  Index: UILServerILService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/uil/UILServerILService.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- UILServerILService.java   2001/07/28 02:23:46     1.4
  +++ UILServerILService.java   2001/07/31 21:36:13     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 UILServerILService extends ServerILJMXService implements 
UILServerILServiceMBean, Runnable {
        
  @@ -151,14 +151,17 @@
                        
                        while( running && socket==null ) {
                                try {
  -                             socket = serverSocket.accept();
  +                                     socket = serverSocket.accept();
                                } catch ( java.io.InterruptedIOException e ) {
                                }
                        }
  +
  +                     if( !running )
  +                             return;
                        
                        new Thread(this,"UIL Worker").start();
   
  -             mSocket = new SocketMultiplexor(socket);
  +                     mSocket = new SocketMultiplexor(socket);
   
                        out = new ObjectOutputStream(new 
BufferedOutputStream(mSocket.getOutputStream(1)));
                        out.flush();
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to