From abe16a76d40facc3995ec17e5e25b9a22f9f771b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 25 Jan 2012 01:26:42 +0000 Subject: [PATCH] - Adjustment of error condition --- src/mesh/mesh_api.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index b76bbf361..2393d0fbc 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -387,7 +387,7 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner) { GNUNET_break (0); return; - } + } h = t->mesh; /* disconnect all peers */ @@ -414,8 +414,9 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner) if (th->tunnel != t) continue; /* we should not really get here, as clients should have - aborted there requests already */ - GNUNET_break (0); + aborted their requests already. + Management traffic should be ok, as clients can't cancel that */ + GNUNET_break (NULL == th->notify); GNUNET_CONTAINER_DLL_remove (h->th_head, h->th_tail, th); /* clean up request */ -- 2.25.1