public void run(){
  ServerSocket theServer=server;
  if (theServer == null)   return;
  try {
    while (true) {
      Socket socket=theServer.accept();
      socketPool.addSocket(socket);
      runIncomingCommandHandler(socket);
    }
  }
 catch (  IOException e) {
    if (thread != null || server != null) {
      RemoteCommandPlugin.log("Error occurred while handling local command server.",e);
    }
  }
 finally {
    try {
      theServer.close();
    }
 catch (    IOException e) {
    }
  }
}

public void run ( ) { ServerSocket theServer = server ; if ( theServer == null ) return ; try { while ( true ) { Socket socket = theServer . accept ( ) ; socketPool . addSocket ( socket ) ; runIncomingCommandHandler ( socket ) ; } } catch ( IOException e ) { if ( thread != null || server != null ) { RemoteCommandPlugin . log ( "Error occurred while handling local command server." , e ) ; } } finally { try { theServer . close ( ) ; } catch ( IOException e ) { } } }
runs the server handling loop . accepts all socket connections and fork them into separate handling job .
