-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsubscribe on channel enumeration causing crash #842
Comments
realtime.channels.get("groups").subscribe("foo", onAttach: { error in
self.realtime.channels.get("groups").unsubscribe() //<-- crash
}, callback: { message in
print(message)
}) ^ this will crash with a EXC_BAD_INSTRUCTION (SIGTRAP). Stack trace:
The |
Thanks for investifgating. @ricardopereira are you saying thtat that's fault though in the SDK or the caller. I would argue that whilst odd, it's still valid. |
@mattheworiordan It's a SDK issue. All user callbacks should use the user queue, not the internal one. |
Ok. |
@mattheworiordan Fix has been implemented. Just waiting for the CI. |
Which version of the Ably SDK are you using?
github "ably/ably-ios" == 1.1.2
On which platform does the issue happen?
iOS 12
What did you do?
What did you expect to happen?
Not a crash!
What happened instead?
The text was updated successfully, but these errors were encountered: