- minor fix
authorBart Polot <bart@net.in.tum.de>
Tue, 24 Jan 2012 03:14:22 +0000 (03:14 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 24 Jan 2012 03:14:22 +0000 (03:14 +0000)
src/mesh/mesh_api.c

index c45017ae08538bb7598de08c16d1a1da3d32acb4..4f733c1d3b10a9dfa1abd83d84d8efd9e1cb86fb 100644 (file)
@@ -413,6 +413,11 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner)
       th = th->next;
     }
   }
+  if (NULL == h->th_head && NULL != h->th)
+  {
+    GNUNET_CLIENT_notify_transmit_ready_cancel(h->th);
+    h->th = NULL;
+  }
   GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t);
   for (i = 0; i < t->npeers; i++)
   {