From eabdf42783e7ca2c3579c1847f21d178ac52a584 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 26 Oct 2016 04:20:46 +0000 Subject: [PATCH] - cancel maintenance message if connection is confirmed while a maintenance message is queued --- 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 6dbabb5ab..da0d6e20d 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -1583,6 +1583,11 @@ connection_reset_timeout (struct CadetConnection *c, int fwd) if (GCC_is_origin (c, fwd)) /* Startpoint */ { schedule_next_keepalive (c, fwd); + if (NULL != c->maintenance_q) + { + GCP_send_cancel (c->maintenance_q); + c->maintenance_q = NULL; /* Is set to NULL by conn_message_sent anyway */ + } } else /* Relay, endpoint. */ { -- 2.25.1