} catch( RemoteException e1 ) {
System.err.println( "Unable to ping the server!" ) ;
e1.printStackTrace() ;
+ yield() ;
}
try {
sleep( 2000 ) ;
} catch( InterruptedException e ) {
e.printStackTrace() ;
+ yield() ;
}
}
}
serverSocket.close() ;
} catch( IOException e ) {
e.printStackTrace() ;
+ yield() ;
}
}
}
} catch( IOException e ) {
System.err.println( "Unable to launch the SocketServer on port " + dialog_port + "!" ) ;
e.printStackTrace() ;
-
- go = false ;
+ System.exit( 1 ) ;
}
while( go )
} catch( IOException e ) {
System.err.println( "Problem with the accept function!" ) ;
e.printStackTrace() ;
+ yield() ;
}
}
}
reader = new BufferedReader( new InputStreamReader( socket.getInputStream() ) ) ;
} catch( IOException e ) {
System.err.println( "Unable to open a dialog socket with the VM!" ) ;
- e.printStackTrace();
+ e.printStackTrace() ;
+ yield() ;
}
try {
} catch( IOException e ) {
e.printStackTrace() ;
+ yield() ;
}
}
}