- process channel destroy notifications properly
authorBart Polot <bart@net.in.tum.de>
Fri, 29 Nov 2013 11:59:08 +0000 (11:59 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 29 Nov 2013 11:59:08 +0000 (11:59 +0000)
src/mesh/test_mesh_small.c

index 855156bd9d835bd1ea1da4d0a81aa4c6aefd1655..b3bf8d9fecc28251e4be15b48770924b7e8b34c8 100644 (file)
@@ -589,11 +589,16 @@ channel_cleaner (void *cls, const struct GNUNET_MESH_Channel *channel,
   if (4L == i)
   {
     ok++;
+    GNUNET_break (channel == incoming_ch);
     incoming_ch = NULL;
   }
-  else if (0L == i && P2P_SIGNAL == test)
+  else if (0L == i)
   {
-    ok ++;
+    if (P2P_SIGNAL == test)
+    {
+      ok ++;
+    }
+    GNUNET_break (channel == ch);
     ch = NULL;
   }
   else