Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kghost committed Mar 3, 2021
1 parent 1e8f4c2 commit 2300640
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/messaging/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ ExchangeContext * ChannelHandle::NewExchange(ExchangeDelegate * delegate)

void ChannelHandle::Release()
{
if (mAssociation == nullptr)
mAssociation = nullptr;
if (mAssociation == nullptr) return;

mAssociation->mChannelContext->mExchangeManager->ReleaseChannelHandle(mAssociation);
mAssociation = nullptr;
}

} // namespace Messaging
Expand Down

0 comments on commit 2300640

Please sign in to comment.