X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0c13871d73e933c1847faf8debea7b7745a3ff44..30da2c3f2a40176534da4370bfedaf1f65b5456a:/examples/msg/chainsend/common.c diff --git a/examples/msg/chainsend/common.c b/examples/msg/chainsend/common.c index 37f2b74cb8..928c6e3a43 100644 --- a/examples/msg/chainsend/common.c +++ b/examples/msg/chainsend/common.c @@ -10,8 +10,8 @@ int process_pending_connections(xbt_dynar_t q) xbt_dynar_foreach(q, iter, comm) { empty = 1; if (MSG_comm_test(comm)) { - MSG_comm_destroy(comm); status = MSG_comm_get_status(comm); + MSG_comm_destroy(comm); xbt_assert(status == MSG_OK, "process_pending_connections() failed"); xbt_dynar_cursor_rm(q, &iter); empty = 0;