diff options
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 570a5dc1f..c13224e83 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -749,9 +749,6 @@ GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic) | |||
749 | struct GNUNET_PEERINFO_Handle *h; | 749 | struct GNUNET_PEERINFO_Handle *h; |
750 | 750 | ||
751 | h = ic->h; | 751 | h = ic->h; |
752 | GNUNET_CONTAINER_DLL_remove (h->ic_head, | ||
753 | h->ic_tail, | ||
754 | ic); | ||
755 | if (GNUNET_SCHEDULER_NO_TASK != ic->timeout_task) | 752 | if (GNUNET_SCHEDULER_NO_TASK != ic->timeout_task) |
756 | { | 753 | { |
757 | GNUNET_SCHEDULER_cancel (ic->timeout_task); | 754 | GNUNET_SCHEDULER_cancel (ic->timeout_task); |
@@ -760,6 +757,9 @@ GNUNET_PEERINFO_iterate_cancel (struct GNUNET_PEERINFO_IteratorContext *ic) | |||
760 | ic->callback = NULL; | 757 | ic->callback = NULL; |
761 | if (GNUNET_YES == ic->in_receive) | 758 | if (GNUNET_YES == ic->in_receive) |
762 | return; /* need to finish processing */ | 759 | return; /* need to finish processing */ |
760 | GNUNET_CONTAINER_DLL_remove (h->ic_head, | ||
761 | h->ic_tail, | ||
762 | ic); | ||
763 | if (NULL != ic->ac) | 763 | if (NULL != ic->ac) |
764 | { | 764 | { |
765 | GNUNET_CONTAINER_DLL_remove (h->ac_head, h->ac_tail, ic->ac); | 765 | GNUNET_CONTAINER_DLL_remove (h->ac_head, h->ac_tail, ic->ac); |