are core_notify_transmit_ready calls failing?
authorNathan S. Evans <evans@in.tum.de>
Fri, 26 Nov 2010 11:16:30 +0000 (11:16 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 26 Nov 2010 11:16:30 +0000 (11:16 +0000)
src/dht/gnunet-service-dht.c

index 74539245655a02c99cb05955f0d7cf92bad7783d..299d90d81bf41def9f50fbee85ab434a61519674 100644 (file)
@@ -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);
         }
     }