rps service: additional logging of unexpected channel establishing
authorJulius Bünger <buenger@mytum.de>
Thu, 5 Jul 2018 20:06:54 +0000 (22:06 +0200)
committerJulius Bünger <buenger@mytum.de>
Thu, 5 Jul 2018 20:06:54 +0000 (22:06 +0200)
src/rps/gnunet-service-rps.c

index db09c68d2cbdf71aa4de40b2f2cfdfda08c595ca..aef6a72de6d85921a9f650d59d4036fb6edb672f 100644 (file)
@@ -1534,6 +1534,9 @@ Peers_handle_inbound_channel (void *cls,
   /* We only accept one incoming channel per peer */
   if (GNUNET_YES == Peers_check_peer_send_intention (initiator))
   {
+    LOG (GNUNET_ERROR_TYPE_WARNING,
+        "Already got one receive channel. Destroying old one.\n");
+    GNUNET_break_op (0);
     set_channel_flag (peer_ctx->recv_channel_flags,
                       Peers_CHANNEL_ESTABLISHED_TWICE);
     //GNUNET_CADET_channel_destroy (channel);