From a5966c5d23874555161408f0eaf40922fe3ca7d1 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 20 Oct 2015 02:28:04 +0000 Subject: [PATCH] When cancelling polls cancel pending messages as well, as the message will trigger a new poll upon sending. Fix #4010. --- src/cadet/gnunet-service-cadet_connection.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 26ccabbcd..2d030f8af 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -3759,6 +3759,11 @@ GCC_stop_poll (struct CadetConnection *c, int fwd) GNUNET_SCHEDULER_cancel (fc->poll_task); fc->poll_task = NULL; } + if (NULL != fc->poll_msg) + { + GCC_cancel (fc->poll_msg); + fc->poll_msg = NULL; + } } -- 2.25.1