diff options
Diffstat (limited to 'src/cadet/gnunet-cadet.c')
-rw-r--r-- | src/cadet/gnunet-cadet.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c index bede7b791..485c018f5 100644 --- a/src/cadet/gnunet-cadet.c +++ b/src/cadet/gnunet-cadet.c | |||
@@ -196,6 +196,11 @@ shutdown_task (void *cls, | |||
196 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 196 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
197 | { | 197 | { |
198 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown\n"); | 198 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown\n"); |
199 | if (NULL != th) | ||
200 | { | ||
201 | GNUNET_CADET_notify_transmit_ready_cancel (th); | ||
202 | th = NULL; | ||
203 | } | ||
199 | if (NULL != ch) | 204 | if (NULL != ch) |
200 | { | 205 | { |
201 | GNUNET_CADET_channel_destroy (ch); | 206 | GNUNET_CADET_channel_destroy (ch); |