From e8a0bbfb758dd25a89a30ba7c7ff3cfc2f20ba69 Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Mon, 24 Aug 2015 19:36:29 +0300 Subject: [PATCH] Fixing TopicRemoved not raised --- src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs b/src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs index 19e05974a..24c1134d9 100644 --- a/src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs +++ b/src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs @@ -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); + } } } }