- Adjustment of error condition
authorBart Polot <bart@net.in.tum.de>
Wed, 25 Jan 2012 01:26:42 +0000 (01:26 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 25 Jan 2012 01:26:42 +0000 (01:26 +0000)
src/mesh/mesh_api.c

index b76bbf3614f06be48b1f6e92b89993b170217c24..2393d0fbcd9b624bbfc59db9a03647a9ed419c3e 100644 (file)
@@ -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 */