From: Nathan S. Evans Date: Fri, 26 Nov 2010 11:16:30 +0000 (+0000) Subject: are core_notify_transmit_ready calls failing? X-Git-Tag: initial-import-from-subversion-38251~19617 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0469df00362f2d97ea9a475d362595f43b629ea;p=oweals%2Fgnunet.git are core_notify_transmit_ready calls failing? --- 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); } }