Closed akuzminskyi closed 2 weeks ago
@akuzminskyi could you show how you add listeners to the PubNub
instance?
And how do you store SubscriptionListener
variables? Are they strong references?
Are they strong references?
yes, and I think maybe the same listener can be trying to add twice.
if this is the case, shouldn't we ignore it and instead of:
elements.update(with: WeakBox(element))
elements.insert(WeakBox(element))
I think the issue is described here. so I think this issue is with the SDK implementation.
I was unable to reproduce this error on 6.2.3 when attempting to add the same listener more than once. I will investigate possible new scenarios and update you on my findings in this thread
Fixed in 7.3.3
Maybe this post can help.
PubNub SDK Version 6.2.3(yes, this is not the latest).