From 1104523fb70af8f41034fcebed039b3705254c8f Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 7 Jun 2013 00:40:21 +0000 Subject: [PATCH] - fix shutdown crash --- src/mesh/gnunet-service-mesh-new.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index ddbd98ef0..e90584e62 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -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); -- 2.25.1