summaryrefslogtreecommitdiff
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)
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)
GNUNET_PEER_change_rc (pi->id, -1);
GNUNET_CRYPTO_hash (&id, sizeof (struct GNUNET_PeerIdentity), &hash);
- GNUNET_assert (GNUNET_YES ==
- GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi));
+ if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_remove (peers, &hash, pi))
+ {
+ GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "MESH: removing peer %s, not in hashmap\n",
+ GNUNET_i2s (&id));
+ }
if (NULL != pi->dhtget)
{
GNUNET_DHT_get_stop(pi->dhtget);