gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13665 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r13665 - gnunet/src/dht
Date: Fri, 12 Nov 2010 13:44:45 +0100

Author: nevans
Date: 2010-11-12 13:44:45 +0100 (Fri, 12 Nov 2010)
New Revision: 13665

Modified:
   gnunet/src/dht/gnunet-service-dht.c
Log:
bug fix

Modified: gnunet/src/dht/gnunet-service-dht.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht.c 2010-11-12 12:15:55 UTC (rev 13664)
+++ gnunet/src/dht/gnunet-service-dht.c 2010-11-12 12:44:45 UTC (rev 13665)
@@ -1112,7 +1112,7 @@
 
   size_t off;
   size_t msize;
-
+  peer->th = NULL;
   if (buf == NULL)
     {
       /* client disconnected */
@@ -1125,7 +1125,6 @@
   if (peer->head == NULL)
     return 0;
 
-  peer->th = NULL;
   off = 0;
   pending = peer->head;
   reply_times[reply_counter] = 
GNUNET_TIME_absolute_get_difference(pending->scheduled, 
GNUNET_TIME_absolute_get());
@@ -1523,7 +1522,7 @@
 
   if (peer->send_task != GNUNET_SCHEDULER_NO_TASK)
     GNUNET_SCHEDULER_cancel(peer->send_task);
-  if (peer->th != NULL)
+  if ((peer->th != NULL) && (coreAPI != NULL))
     GNUNET_CORE_notify_transmit_ready_cancel(peer->th);
 
   pos = peer->head;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]