Should channel subscription be disposed?

Options
Hi

Suppose there is a ClientPeer class that has a publish Channel. Some object - call it Lobby - is subscribed to publish channels of all ClientPeers with its poolfiber.

Poolfiber's NumSubscriptions increase when Lobby subscribes to new ClentPeer object's channel. However NumSubscriptions does not decrease when some ClentPeer object disposes.

Do you recommend to dispose corresponding subscription in Lobby when some ClientPeer object leaves or it will not affect performance and can be ignored?

Thanks

Best Answers

Answers

  • BesoC
    Options
    Thanks for the answer, Ilya.
    If subscriptions will not be deregistered, what will it cause? memory leaks? higher cpu usage? exceptions?
  • BesoC
    Options
    Clear. Thank you, Ilya