From f04fa5c9e578834d5d67091893c398ed2c4ff1f3 Mon Sep 17 00:00:00 2001 From: Jose Marcial Vieira Bisneto Date: Thu, 1 Nov 2018 23:15:24 -0300 Subject: [PATCH] Removed send protocol since it was sent before. libp2p_secio_stream_new already calls libp2p_secio_send_protocol --- secio/secio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/secio/secio.c b/secio/secio.c index 27820dc..50d66c2 100644 --- a/secio/secio.c +++ b/secio/secio.c @@ -68,9 +68,6 @@ int libp2p_secio_handle_message(const struct StreamMessage* msg, struct Stream* // have we not already started negotiating? if (stream->stream_type != STREAM_TYPE_SECIO) { secio_stream = libp2p_secio_stream_new(stream, ctx->peer_store, ctx->private_key); - // send them the protocol - if (!libp2p_secio_send_protocol(stream)) - return -1; } else { secio_stream = stream; }