updates peerImp to correctly cancel protocol start if shutdown was initiated

This commit is contained in:
Vito
2025-09-04 11:46:39 +02:00
parent 3e406e1e13
commit c273c14b3e
2 changed files with 3 additions and 1 deletions

View File

@@ -902,6 +902,9 @@ void
PeerImp::doProtocolStart()
{
// a shutdown was initiated before the handshare, there is nothing to do
if (shutdown_)
return tryAsyncShutdown();
onReadMessage(error_code(), 0);
// Send all the validator lists that have been loaded

View File

@@ -41,7 +41,6 @@
#include <boost/thread/shared_mutex.hpp>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <optional>
#include <queue>