fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 22 Apr 2010 13:19:38 +0000 (13:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 22 Apr 2010 13:19:38 +0000 (13:19 +0000)
src/peerinfo/peerinfo_api.c

index 44af04c9288269174defbb756527968d68177734..0a0916d7221fe9cd133154553a4b4addadd1669e 100644 (file)
@@ -472,6 +472,12 @@ iterator_start_receive (void *cls,
 
   if (GNUNET_OK != transmit_success)
     {
+      if (ic->timeout_task != GNUNET_SCHEDULER_NO_TASK)
+       {
+         GNUNET_SCHEDULER_cancel (ic->h->sched,
+                                  ic->timeout_task);
+         ic->timeout_task = GNUNET_SCHEDULER_NO_TASK;
+       }
       ic->callback (ic->callback_cls, NULL, NULL, 2);
       reconnect (ic->h);
       trigger_transmit (ic->h);