- fix shutdown crash
authorBart Polot <bart@net.in.tum.de>
Fri, 7 Jun 2013 00:40:21 +0000 (00:40 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 7 Jun 2013 00:40:21 +0000 (00:40 +0000)
src/mesh/gnunet-service-mesh-new.c

index ddbd98ef0119f07e2f87f4144e9d3fb34c76d391..e90584e626030eb09518370f474b438e64b5b2f1 100644 (file)
@@ -2371,7 +2371,8 @@ tunnel_destroy_iterator (void *cls,
   struct MeshTunnel *t = value;
   struct MeshClient *c = cls;
 
-  send_client_tunnel_destroy (t);
+  if (GNUNET_NO == c->shutting_down)
+    send_client_tunnel_destroy (t);
   if (c != t->owner)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Client %u is destination.\n", c->id);