fix as suggested by mwachs
authorChristian Grothoff <christian@grothoff.org>
Tue, 2 Nov 2010 14:11:41 +0000 (14:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 2 Nov 2010 14:11:41 +0000 (14:11 +0000)
src/fs/gnunet-service-fs.c
src/transport/transport_api.c

index ad770f779193d13e6ed599e11fe7239b47a8d3b0..579e1ac50c5b505ba396c0c1f7d6cd579190a456 100644 (file)
@@ -41,7 +41,7 @@
 #include "gnunet-service-fs_indexing.h"
 #include "fs.h"
 
-#define DEBUG_FS GNUNET_YES
+#define DEBUG_FS GNUNET_NO
 
 /**
  * Should we introduce random latency in processing?  Required for proper
@@ -2786,7 +2786,7 @@ target_peer_select_cb (void *cls,
   if (delay.rel_value <= cp->avg_delay.rel_value)
     {
 #if DEBUG_FS
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "NOT sending query since we send %u others to this peer in the last %llums\n",
                  MAX_QUEUE_PER_PEER,
                  cp->avg_delay.rel_value);
index 5410aca8a5839438c11fcd8a5394a5e84be56a55..c0f32f93d0ad5068ff850422dce947b06d5ff49c 100644 (file)
@@ -1900,6 +1900,12 @@ GNUNET_TRANSPORT_notify_transmit_ready_cancel (struct
     default:
       GNUNET_break (0);
     }
+  if (th->notify_delay_task != GNUNET_SCHEDULER_NO_TASK)
+    {
+      GNUNET_SCHEDULER_cancel (n->h->sched,
+                              th->notify_delay_task);
+      th->notify_delay_task = GNUNET_SCHEDULER_NO_TASK;
+    }
 }