diff options
author | Julius Bünger <buenger@mytum.de> | 2018-08-10 12:44:51 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-08-13 14:33:04 +0200 |
commit | 8275d52ec81b53f46b799facc8c051829ded6eed (patch) | |
tree | e9fe0c8871a5938cb56fe8ce2f2ff2d9f3c7f735 /src/rps/gnunet-service-rps_custommap.c | |
parent | 341c1dd692c62a88eeff34fca155ce2377677d4b (diff) | |
download | gnunet-8275d52ec81b53f46b799facc8c051829ded6eed.tar.gz gnunet-8275d52ec81b53f46b799facc8c051829ded6eed.zip |
Use synchronised logic for closing channels (rps service)
Diffstat (limited to 'src/rps/gnunet-service-rps_custommap.c')
-rw-r--r-- | src/rps/gnunet-service-rps_custommap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_custommap.c b/src/rps/gnunet-service-rps_custommap.c index 9e003eb39..3513ff8da 100644 --- a/src/rps/gnunet-service-rps_custommap.c +++ b/src/rps/gnunet-service-rps_custommap.c | |||
@@ -202,6 +202,7 @@ CustomPeerMap_remove_peer (const struct CustomPeerMap *c_peer_map, | |||
202 | p = GNUNET_CONTAINER_multihashmap32_get (c_peer_map->hash_map, *index); | 202 | p = GNUNET_CONTAINER_multihashmap32_get (c_peer_map->hash_map, *index); |
203 | GNUNET_assert (NULL != p); | 203 | GNUNET_assert (NULL != p); |
204 | GNUNET_CONTAINER_multihashmap32_remove_all (c_peer_map->hash_map, *index); | 204 | GNUNET_CONTAINER_multihashmap32_remove_all (c_peer_map->hash_map, *index); |
205 | // TODO wrong peerid? | ||
205 | GNUNET_CONTAINER_multipeermap_remove_all (c_peer_map->peer_map, peer); | 206 | GNUNET_CONTAINER_multipeermap_remove_all (c_peer_map->peer_map, peer); |
206 | if (*index != CustomPeerMap_size (c_peer_map)) | 207 | if (*index != CustomPeerMap_size (c_peer_map)) |
207 | { /* fill 'gap' with peer at last index */ | 208 | { /* fill 'gap' with peer at last index */ |