diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-11-18 14:44:41 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-11-18 14:44:41 +0000 |
commit | a23131f1f81524c774869d978766f5ff46e230c2 (patch) | |
tree | 114085dd588483194353a808e9b3b648b28afa60 | |
parent | 67c912ea5a0f1acdbf3b8f82e6de5defa4632285 (diff) | |
download | gnunet-a23131f1f81524c774869d978766f5ff46e230c2.tar.gz gnunet-a23131f1f81524c774869d978766f5ff46e230c2.zip |
- cancel queued message on connection destroy
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 04bfe4e56..163d1e16c 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -2149,6 +2149,10 @@ GMC_destroy (struct MeshConnection *c) | |||
2149 | GNUNET_SCHEDULER_cancel (c->fwd_fc.poll_task); | 2149 | GNUNET_SCHEDULER_cancel (c->fwd_fc.poll_task); |
2150 | if (GNUNET_SCHEDULER_NO_TASK != c->bck_fc.poll_task) | 2150 | if (GNUNET_SCHEDULER_NO_TASK != c->bck_fc.poll_task) |
2151 | GNUNET_SCHEDULER_cancel (c->bck_fc.poll_task); | 2151 | GNUNET_SCHEDULER_cancel (c->bck_fc.poll_task); |
2152 | if (NULL != c->fwd_fc.poll_msg) | ||
2153 | GMC_cancel (c->fwd_fc.poll_msg); | ||
2154 | if (NULL != c->bck_fc.poll_msg) | ||
2155 | GMC_cancel (c->bck_fc.poll_msg); | ||
2152 | 2156 | ||
2153 | /* Unregister from neighbors */ | 2157 | /* Unregister from neighbors */ |
2154 | unregister_neighbors (c); | 2158 | unregister_neighbors (c); |