From: Bart Polot Date: Fri, 7 Jun 2013 00:40:21 +0000 (+0000) Subject: - fix shutdown crash X-Git-Tag: initial-import-from-subversion-38251~8828 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1104523fb70af8f41034fcebed039b3705254c8f;p=oweals%2Fgnunet.git - fix shutdown crash --- 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);