Removed send protocol since it was sent before.

libp2p_secio_stream_new already calls libp2p_secio_send_protocol
master
Jose Marcial Vieira Bisneto 2018-11-01 23:15:24 -03:00
parent 5e4f3cdb04
commit f04fa5c9e5
No known key found for this signature in database
GPG Key ID: 103E935E7E6E831E
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}