X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1d42ba4356da8e3424c15ea6bef536078efa170a..11c89cce51496fc517db7fc3485de5ba2b328217:/examples/s4u/dht-chord/s4u-dht-chord.hpp diff --git a/examples/s4u/dht-chord/s4u-dht-chord.hpp b/examples/s4u/dht-chord/s4u-dht-chord.hpp index f161ef7882..a5fff65eb7 100644 --- a/examples/s4u/dht-chord/s4u-dht-chord.hpp +++ b/examples/s4u/dht-chord/s4u-dht-chord.hpp @@ -161,6 +161,8 @@ public: } now = simgrid::s4u::Engine::getClock(); } + if (comm_receive != nullptr) + comm_receive->cancel(); delete static_cast(data); // leave the ring leave();