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

index 8ac1efa615ee7c75392260a7f770821aec600103..516e877e849283f8d4385f775fdd4559ea14df85 100644 (file)
@@ -588,6 +588,7 @@ remove_peer_from_tunnel (struct GNUNET_MESH_Peer *p)
 
 /**
  * Notify client that the transmission has timed out
+ * 
  * @param cls closure
  * @param tc task context
  */
@@ -601,6 +602,7 @@ timeout_transmission (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   GNUNET_CONTAINER_DLL_remove (mesh->th_head, mesh->th_tail, th);
   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))
   {