X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/hpcvm.git/blobdiff_plain/c2a0de69e20fda415c1ca6d90b04d2a4cf253acc..9e53fd0b0fd58c90f1a55341f25f42426a520283:/src/and/hpcvm/Client.java diff --git a/src/and/hpcvm/Client.java b/src/and/hpcvm/Client.java index 06bb4e7..662944e 100644 --- a/src/and/hpcvm/Client.java +++ b/src/and/hpcvm/Client.java @@ -1328,12 +1328,14 @@ public class Client extends UnicastRemoteObject implements ServicesClient } catch( RemoteException e1 ) { System.err.println( "Unable to ping the server!" ) ; e1.printStackTrace() ; + yield() ; } try { sleep( 2000 ) ; } catch( InterruptedException e ) { e.printStackTrace() ; + yield() ; } } } @@ -1361,6 +1363,7 @@ public class Client extends UnicastRemoteObject implements ServicesClient serverSocket.close() ; } catch( IOException e ) { e.printStackTrace() ; + yield() ; } } } @@ -1377,8 +1380,7 @@ public class Client extends UnicastRemoteObject implements ServicesClient } catch( IOException e ) { System.err.println( "Unable to launch the SocketServer on port " + dialog_port + "!" ) ; e.printStackTrace() ; - - go = false ; + System.exit( 1 ) ; } while( go ) @@ -1391,6 +1393,7 @@ public class Client extends UnicastRemoteObject implements ServicesClient } catch( IOException e ) { System.err.println( "Problem with the accept function!" ) ; e.printStackTrace() ; + yield() ; } } } @@ -1412,7 +1415,8 @@ public class Client extends UnicastRemoteObject implements ServicesClient 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 { @@ -1526,6 +1530,7 @@ public class Client extends UnicastRemoteObject implements ServicesClient } catch( IOException e ) { e.printStackTrace() ; + yield() ; } } }