From b991ea54e25c3a6d295e2fd39264c72db6abb29f Mon Sep 17 00:00:00 2001 From: kamilsa Date: Sun, 5 Oct 2025 11:59:59 +0100 Subject: [PATCH] fix: remove Rust setup from build and init scripts --- src/network/listener_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network/listener_manager.cpp b/src/network/listener_manager.cpp index fe217421..e026969b 100644 --- a/src/network/listener_manager.cpp +++ b/src/network/listener_manager.cpp @@ -255,6 +255,11 @@ namespace libp2p::network { this->getProtocol(proto_name); if (rprotocol.has_value()) { const auto &protocol = rprotocol.value(); + if (!protocol) { + log()->warn("can not negotiate protocols, protocol is null"); + stream->reset(); + continue; + } protocol->handle(stream); continue; }