diff options
author | Julius Bünger <buenger@mytum.de> | 2015-07-22 09:37:24 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2015-07-22 09:37:24 +0000 |
commit | 200fd67bcca55ad08351719b154516d91443a298 (patch) | |
tree | a9538639f583d7758c0570bcc92bc98fbcdb2a8c /src | |
parent | 36fd53ed6ae7c60d4b49cea614d18aa6d58843a1 (diff) | |
download | gnunet-200fd67bcca55ad08351719b154516d91443a298.tar.gz gnunet-200fd67bcca55ad08351719b154516d91443a298.zip |
-fixed duplicate ntfy_tmt_rdy
Diffstat (limited to 'src')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 6662b00ff..fd398b863 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -855,12 +855,14 @@ get_mq (struct GNUNET_CONTAINER_MultiPeerMap *peer_map, | |||
855 | void | 855 | void |
856 | check_peer_live (struct PeerContext *peer_ctx) | 856 | check_peer_live (struct PeerContext *peer_ctx) |
857 | { | 857 | { |
858 | (void) get_channel (peer_map, &peer_ctx->peer_id); | ||
859 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 858 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
860 | "Get informed about peer %s getting live\n", | 859 | "Get informed about peer %s getting live\n", |
861 | GNUNET_i2s (&peer_ctx->peer_id)); | 860 | GNUNET_i2s (&peer_ctx->peer_id)); |
862 | if (NULL == peer_ctx->is_live_task) | 861 | |
862 | if (NULL == peer_ctx->is_live_task && | ||
863 | NULL == peer_ctx->send_channel) | ||
863 | { | 864 | { |
865 | (void) get_channel (peer_map, &peer_ctx->peer_id); | ||
864 | peer_ctx->is_live_task = | 866 | peer_ctx->is_live_task = |
865 | GNUNET_CADET_notify_transmit_ready (peer_ctx->send_channel, | 867 | GNUNET_CADET_notify_transmit_ready (peer_ctx->send_channel, |
866 | GNUNET_NO, | 868 | GNUNET_NO, |
@@ -869,11 +871,12 @@ check_peer_live (struct PeerContext *peer_ctx) | |||
869 | cadet_ntfy_tmt_rdy_cb, | 871 | cadet_ntfy_tmt_rdy_cb, |
870 | peer_ctx); | 872 | peer_ctx); |
871 | } | 873 | } |
872 | else | 874 | else if (NULL != peer_ctx->is_live_task) |
873 | { | ||
874 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 875 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
875 | "Already waiting for notification\n"); | 876 | "Already waiting for notification\n"); |
876 | } | 877 | else if (NULL != peer_ctx->send_channel) |
878 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
879 | "Already have established channel to peer\n"); | ||
877 | } | 880 | } |
878 | 881 | ||
879 | 882 | ||