gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21395 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r21395 - gnunet/src/core
Date: Wed, 9 May 2012 21:43:27 +0200

Author: grothoff
Date: 2012-05-09 21:43:27 +0200 (Wed, 09 May 2012)
New Revision: 21395

Modified:
   gnunet/src/core/core_api.c
Log:
-fix #2331

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2012-05-09 18:41:51 UTC (rev 21394)
+++ gnunet/src/core/core_api.c  2012-05-09 19:43:27 UTC (rev 21395)
@@ -593,6 +593,11 @@
 
 /**
  * Transmit the next message to the core service.
+ *
+ * @param cls closure with the 'struct GNUNET_CORE_Handle'
+ * @param size number of bytes available in buf
+ * @param buf where the callee should write the message
+ * @return number of bytes written to buf 
  */
 static size_t
 transmit_message (void *cls, size_t size, void *buf)
@@ -1432,7 +1437,8 @@
        * us from the 'ready' list */
       GNUNET_CONTAINER_DLL_remove (h->ready_peer_head, h->ready_peer_tail, pr);
     }
-    request_next_transmission (pr);
+    if (NULL != h->client)
+      request_next_transmission (pr);
   }
 }
 




reply via email to

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