- timeout fix by harsha
authorBart Polot <bart@net.in.tum.de>
Mon, 30 Jul 2012 15:53:02 +0000 (15:53 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 30 Jul 2012 15:53:02 +0000 (15:53 +0000)
src/mesh/mesh_api.c

index 516e877e849283f8d4385f775fdd4559ea14df85..307364fef9b35bca0d66d18bfa040b82d9f53d9a 100644 (file)
@@ -600,9 +600,9 @@ timeout_transmission (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   mesh = th->tunnel->mesh;
   GNUNET_CONTAINER_DLL_remove (mesh->th_head, mesh->th_tail, th);
+  th->tunnel->packet_size = 0;
   if (GNUNET_YES == th_is_payload (th))
     th->notify (th->notify_cls, 0, NULL);
-  th->tunnel->packet_size = 0;
   GNUNET_free (th);
   if ((NULL == mesh->th_head) && (NULL != mesh->th))
   {