- Use a consisten (and correct) way to detect data packets
authorBart Polot <bart@net.in.tum.de>
Tue, 24 Jan 2012 03:06:29 +0000 (03:06 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 24 Jan 2012 03:06:29 +0000 (03:06 +0000)
src/mesh/mesh_api.c

index 48d8251ba65e5bb9b3d12215736418293ba20f03..c45017ae08538bb7598de08c16d1a1da3d32acb4 100644 (file)
@@ -1139,7 +1139,7 @@ send_callback (void *cls, size_t size, void *buf)
     }
     if (th->timeout_task != GNUNET_SCHEDULER_NO_TASK)
       GNUNET_SCHEDULER_cancel (th->timeout_task);
-    if (NULL != th->tunnel)
+    if (NULL != th->notify)
     {
       th->tunnel->mesh->npackets--;
       th->tunnel->npackets--;