From: Sébastien Miquée Date: Tue, 2 Aug 2011 14:02:45 +0000 (+0200) Subject: Little correction on crash detection. X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/hpcvm.git/commitdiff_plain/fe179e65ff14500f07e9c720a52279bb7f9871e6 Little correction on crash detection. --- diff --git a/src/and/hpcvm/Server.java b/src/and/hpcvm/Server.java index 185b5f3..7c31580 100644 --- a/src/and/hpcvm/Server.java +++ b/src/and/hpcvm/Server.java @@ -517,15 +517,17 @@ public class Server extends UnicastRemoteObject implements ServicesServer if( cl.getTimeout() > max_timeout || cl.getFail() ) { + dead = true ; if( ! cl.getFail() ) { try { cl.getStub().echo() ; cl.resetTimeout() ; + dead = false ; } catch( RemoteException e ) { dead = true ; } - } + } if( dead ) {