Skip to content

Commit

Permalink
[C++]: add temporary guard against closeAllResources calling back int…
Browse files Browse the repository at this point in the history
…o releaseSubscription. real-logic#717.
  • Loading branch information
tmontgomery authored and mikeb01 committed Oct 29, 2019
1 parent 3b87877 commit c8a4916
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aeron-client/src/main/cpp/ClientConductor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ void ClientConductor::releaseSubscription(std::int64_t registrationId, Image::ar
std::lock_guard<std::recursive_mutex> lock(m_adminLock);
verifyDriverIsActiveViaErrorHandler();

if (m_isClosed)
{
delete [] imageArray;
return;
}

auto it = m_subscriptionByRegistrationId.find(registrationId);
if (it != m_subscriptionByRegistrationId.end())
{
Expand Down

0 comments on commit c8a4916

Please sign in to comment.