From: Bart Polot Date: Wed, 25 Jan 2012 01:26:42 +0000 (+0000) Subject: - Adjustment of error condition X-Git-Tag: initial-import-from-subversion-38251~15140 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=abe16a76d40facc3995ec17e5e25b9a22f9f771b;p=oweals%2Fgnunet.git - Adjustment of error condition --- 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 */