aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-25 13:48:34 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-25 13:48:34 +0000
commit272eb1de4b680725344df32a72a2f9570ae537ed (patch)
tree888f713fcff12e4ff417788491c040d48c6f0206 /src/mesh
parent48c43d60e93f8517d5f3bb8e5d99e3f3ae78d367 (diff)
downloadgnunet-272eb1de4b680725344df32a72a2f9570ae537ed.tar.gz
gnunet-272eb1de4b680725344df32a72a2f9570ae537ed.zip
Changed assert to break, not critical failure
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 0b44daf6b..08a69b151 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -1301,8 +1301,13 @@ peer_info_destroy (struct MeshPeerInfo *pi)
1301 GNUNET_PEER_change_rc (pi->id, -1); 1301 GNUNET_PEER_change_rc (pi->id, -1);
1302 GNUNET_CRYPTO_hash (&id, sizeof (struct GNUNET_PeerIdentity), &hash); 1302 GNUNET_CRYPTO_hash (&id, sizeof (struct GNUNET_PeerIdentity), &hash);
1303 1303
1304 GNUNET_assert (GNUNET_YES == 1304 if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi))
1305 GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi)); 1305 {
1306 GNUNET_break (0);
1307 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1308 "MESH: removing peer %s, not in hashmap\n",
1309 GNUNET_i2s (&id));
1310 }
1306 if (NULL != pi->dhtget) 1311 if (NULL != pi->dhtget)
1307 { 1312 {
1308 GNUNET_DHT_get_stop(pi->dhtget); 1313 GNUNET_DHT_get_stop(pi->dhtget);