restores shutdownStarted_

This commit is contained in:
Vito
2025-08-27 12:19:44 +02:00
parent 5984ef1400
commit 62e10d09c6
2 changed files with 3 additions and 1 deletions

View File

@@ -120,12 +120,13 @@ ConnectAttempt::tryAsyncShutdown()
strand_.running_in_this_thread(),
"ripple::ConnectAttempt::tryAsyncShutdown : strand in this thread");
if (!shutdown_)
if (!shutdown_ || shutdownStarted_)
return;
if (ioPending_)
return;
shutdownStarted_ = true;
setTimer();
// gracefully shutdown the SSL socket, performing a shutdown handshake

View File

@@ -61,6 +61,7 @@ private:
request_type req_;
bool shutdown_ = false;
bool ioPending_ = false;
bool shutdownStarted_ = false;
public:
ConnectAttempt(