Skip to content

Commit e8a0bbf

Browse files
author
Elad Zelingher
committed
Fixing TopicRemoved not raised
1 parent 085fe68 commit e8a0bbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/net45/WampSharp/WAMP2/V2/PubSub/MatchTopicContainer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ private void OnTopicEmpty(object sender, EventArgs e)
192192
topic.TopicEmpty -= OnTopicEmpty;
193193
topic.Dispose();
194194

195-
mTopicUriToSubject.TryRemoveExact(topic.TopicUri, topic);
195+
if (mTopicUriToSubject.TryRemoveExact(topic.TopicUri, topic))
196+
{
197+
RaiseTopicRemoved(topic);
198+
}
196199
}
197200
}
198201
}

0 commit comments

Comments
 (0)