From fd9f9c812f3b53a650306e3414c4a28977eb803e Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 22 Jan 2025 17:13:37 +0100 Subject: [PATCH] Fix bogus disconnected check (#3402) --- cpp/src/DataStorm/SessionI.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/src/DataStorm/SessionI.cpp b/cpp/src/DataStorm/SessionI.cpp index a18b7929594..0959ed69525 100644 --- a/cpp/src/DataStorm/SessionI.cpp +++ b/cpp/src/DataStorm/SessionI.cpp @@ -606,16 +606,16 @@ SessionI::disconnected(const ConnectionPtr& connection, exception_ptr ex) // Ignore already destroyed. return false; } - else if (connection && _connection != connection) - { - // Ignore the session has already reconnected using a new connection. - return false; - } else if (!_session) { // A recovery attempt was in progress and failed. Return true to let the caller retry. return true; } + else if (connection && _connection != connection) + { + // Ignore the session has already reconnected using a new connection. + return false; + } if (_traceLevels->session > 0) {