Skip to content

Commit

Permalink
Fixing TopicRemoved not raised
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Zelingher committed Aug 24, 2015
1 parent 085fe68 commit e8a0bbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ private void OnTopicEmpty(object sender, EventArgs e)
topic.TopicEmpty -= OnTopicEmpty;
topic.Dispose();

mTopicUriToSubject.TryRemoveExact(topic.TopicUri, topic);
if (mTopicUriToSubject.TryRemoveExact(topic.TopicUri, topic))
{
RaiseTopicRemoved(topic);
}
}
}
}
Expand Down

0 comments on commit e8a0bbf

Please sign in to comment.