X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0afab0e550e09d35a4aaaae802c7f2ea17d2b860..73902a90d11ac06144842e7b7d2c68279b9b51ba:/examples/msg/chord/chord.c diff --git a/examples/msg/chord/chord.c b/examples/msg/chord/chord.c index 5061abd7bd..ec127960ca 100644 --- a/examples/msg/chord/chord.c +++ b/examples/msg/chord/chord.c @@ -355,10 +355,7 @@ int node(int argc, char *argv[]) // nothing to do: sleep for a while MSG_process_sleep(5); } - } - - if (node.comm_receive && MSG_comm_test(node.comm_receive)) { - + } else { // a transfer has occured msg_error_t status = MSG_comm_get_status(node.comm_receive);