aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-03-25 17:18:39 +0000
committerJulius Bünger <buenger@mytum.de>2015-03-25 17:18:39 +0000
commit5afc084a9c29b980bf00fddd7372fa15db63de76 (patch)
tree9d2bd0c38a36b750eb09e0785dfcabd09ba680b3 /src
parentd5f60aed0f0a685ed664de342f88fb5883bcb648 (diff)
downloadgnunet-5afc084a9c29b980bf00fddd7372fa15db63de76.tar.gz
gnunet-5afc084a9c29b980bf00fddd7372fa15db63de76.zip
-additional assertions, fix
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index b5333ae28..0270b3840 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -734,6 +734,9 @@ get_channel (struct GNUNET_CONTAINER_MultiPeerMap *peer_map,
734 struct PeerContext *peer_ctx; 734 struct PeerContext *peer_ctx;
735 735
736 peer_ctx = get_peer_ctx (peer_map, peer); 736 peer_ctx = get_peer_ctx (peer_map, peer);
737
738 GNUNET_assert (NULL == peer_ctx->is_live_task);
739
737 if (NULL == peer_ctx->send_channel) 740 if (NULL == peer_ctx->send_channel)
738 { 741 {
739 LOG (GNUNET_ERROR_TYPE_DEBUG, 742 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -772,6 +775,8 @@ get_mq (struct GNUNET_CONTAINER_MultiPeerMap *peer_map,
772 775
773 peer_ctx = get_peer_ctx (peer_map, peer_id); 776 peer_ctx = get_peer_ctx (peer_map, peer_id);
774 777
778 GNUNET_assert (NULL == peer_ctx->is_live_task);
779
775 if (NULL == peer_ctx->mq) 780 if (NULL == peer_ctx->mq)
776 { 781 {
777 (void) get_channel (peer_map, peer_id); 782 (void) get_channel (peer_map, peer_id);
@@ -1797,8 +1802,8 @@ do_round (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1797 LOG (GNUNET_ERROR_TYPE_DEBUG, 1802 LOG (GNUNET_ERROR_TYPE_DEBUG,
1798 "Updating with peer %s from pull list\n", 1803 "Updating with peer %s from pull list\n",
1799 GNUNET_i2s (&pull_list[i])); 1804 GNUNET_i2s (&pull_list[i]));
1800 RPS_sampler_update (prot_sampler, &push_list[i]); 1805 RPS_sampler_update (prot_sampler, &pull_list[i]);
1801 RPS_sampler_update (client_sampler, &push_list[i]); 1806 RPS_sampler_update (client_sampler, &pull_list[i]);
1802 // TODO set in_flag? 1807 // TODO set in_flag?
1803 } 1808 }
1804 1809