on shutdown, also stop reset tasks
authorChristian Grothoff <christian@grothoff.org>
Tue, 19 Feb 2019 10:44:12 +0000 (11:44 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 19 Feb 2019 10:44:12 +0000 (11:44 +0100)
src/fs/gnunet-service-fs_cadet_client.c

index 900600096f04ba854b4c883dd583515f00957f4a..9ba250dfa9a4f17797d4310e9d5adcf0aaa0269d 100644 (file)
@@ -750,6 +750,11 @@ GSF_cadet_release_clients (void *cls,
     mh->channel = NULL;
     GNUNET_CADET_channel_destroy (channel);
   }
+  if (NULL != mh->reset_task)
+  {
+    GNUNET_SCHEDULER_cancel (mh->reset_task);
+    mh->reset_task = NULL;
+  }
   return GNUNET_YES;
 }