X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff2bf6c94637f28c0c219e9adc61a11e78be1900..5daf61af49b4b767433387330f7f7d21c63e4e59:/examples/msg/app-chainsend/peer.c diff --git a/examples/msg/app-chainsend/peer.c b/examples/msg/app-chainsend/peer.c index 70e7673bfb..f0f6fb1501 100644 --- a/examples/msg/app-chainsend/peer.c +++ b/examples/msg/app-chainsend/peer.c @@ -33,7 +33,7 @@ int peer_execute_task(peer_t peer, msg_task_t task) XBT_DEBUG("Peer %s got message of type %d\n", peer->me, msg->type); if (msg->type == MESSAGE_BUILD_CHAIN) peer_init_chain(peer, msg); - if (msg->type == MESSAGE_SEND_DATA){ + else if (msg->type == MESSAGE_SEND_DATA) { xbt_assert(peer->init, "peer_execute_task() failed: got msg_type %d before initialization", msg->type); if (peer->next != NULL) peer_forward_msg(peer, msg);