From: Matthias Wachs Date: Thu, 27 Oct 2011 20:13:13 +0000 (+0000) Subject: canceling is important! X-Git-Tag: initial-import-from-subversion-38251~16188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8acae3eb63f3cd32650f31a2da4b9fdf903f756;p=oweals%2Fgnunet.git canceling is important! --- diff --git a/src/transport/gnunet-service-transport_neighbours_3way.c b/src/transport/gnunet-service-transport_neighbours_3way.c index 075e6239f..e7c630153 100644 --- a/src/transport/gnunet-service-transport_neighbours_3way.c +++ b/src/transport/gnunet-service-transport_neighbours_3way.c @@ -1106,6 +1106,12 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer, return GNUNET_NO; } + if (n->ats_suggest != GNUNET_SCHEDULER_NO_TASK) + { + GNUNET_SCHEDULER_cancel(n->ats_suggest); + n->ats_suggest = GNUNET_SCHEDULER_NO_TASK; + } + #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS tells us to switch to plugin `%s' address '%s' session %X for %s peer `%s'\n",