X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/767a7a537b2ac742705d23b8dcb25d64cd36a2ee..f94d85ca93901ff79198a5272b61bd47d4544915:/examples/msg/app-bittorrent/tracker.c?ds=sidebyside diff --git a/examples/msg/app-bittorrent/tracker.c b/examples/msg/app-bittorrent/tracker.c index 72ff0d1f67..55b329a6dd 100644 --- a/examples/msg/app-bittorrent/tracker.c +++ b/examples/msg/app-bittorrent/tracker.c @@ -44,7 +44,7 @@ int tracker(int argc, char *argv[]) //Retrieve the data sent by the peer. tracker_task_data_t data = MSG_task_get_data(task_received); //Add the peer to our peer list. - if (!is_in_list(peers_list, data->peer_id)) { + if (is_in_list(peers_list, data->peer_id) == 0) { xbt_dynar_push_as(peers_list, int, data->peer_id); } //Sending peers to the peer