Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
java way of life
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 23 Aug 2016 00:39:07 +0000 (02:39 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 23 Aug 2016 00:39:07 +0000 (02:39 +0200)
examples/java/async/waitall/Receiver.java

index 7296bfb..260b6a6 100644 (file)
@@ -27,7 +27,7 @@ public class Receiver extends Process {
        comm.waitCompletion();
     } catch (TimeoutException e) {
        Msg.info("Timeout while waiting for my task");
-       return; // Stop this process
+       throw e; // Stop this process
     }
     Msg.info("I got my task, good bye.");
   }