From b0469df00362f2d97ea9a475d362595f43b629ea Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 26 Nov 2010 11:16:30 +0000 Subject: [PATCH] are core_notify_transmit_ready calls failing? --- src/dht/gnunet-service-dht.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 745392456..299d90d81 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -1049,9 +1049,11 @@ try_core_send (void *cls, reply_counter++; if (reply_counter >= MAX_REPLY_TIMES) reply_counter = 0; - peer->th = GNUNET_CORE_notify_transmit_ready(coreAPI, pending->importance, - pending->timeout, &peer->id, - ssize, &core_transmit_notify, peer); + peer->th = GNUNET_CORE_notify_transmit_ready (coreAPI, pending->importance, + pending->timeout, &peer->id, + ssize, &core_transmit_notify, peer); + if (peer->th == NULL) + increment_stats("# notify transmit ready failed"); } } @@ -3600,7 +3602,7 @@ route_message(const struct GNUNET_MessageHeader *msg, &selected->id); } #endif - forward_message(msg, selected, msg_ctx); + forward_message (msg, selected, msg_ctx); } } -- 2.25.1