Skip to content

Commit

Permalink
Fix bogus disconnected check (#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Jan 22, 2025
1 parent 7cf9671 commit fd9f9c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/src/DataStorm/SessionI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fd9f9c8

Please sign in to comment.