- fix unrelated bug in 2906 comments
authorBart Polot <bart@net.in.tum.de>
Tue, 25 Jun 2013 23:40:14 +0000 (23:40 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 25 Jun 2013 23:40:14 +0000 (23:40 +0000)
src/mesh/mesh2_api.c
src/mesh/test_mesh2_local.c

index c07040192eb3bd80581e54bc7433cc58da26a25b..bbb369c7b6e8cb58de11866b2ee72bddb36c57e3 100644 (file)
@@ -495,9 +495,7 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner)
   }
   h = t->mesh;
 
-  /* free all peer's ID */
   GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t);
-  GNUNET_PEER_change_rc (t->peer, -1);
 
   /* signal tunnel destruction */
   if ( (NULL != h->cleaner) && (0 != t->peer) && (GNUNET_YES == call_cleaner) )
index 68452ffdf2d16e91ea9888126f414aa8cdbdf4d7..7706851848e91bce44fd0db8e0f37ed1edadbf13 100644 (file)
@@ -58,7 +58,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   }
   if (NULL != t)
   {
-    GNUNET_MESH_tunnel_destroy(t);
+    GNUNET_MESH_tunnel_destroy (t);
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n");
   if (NULL != mesh_peer_1)