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
[Crash] SDK crashes when disconnect from topic #596
Comments
Hey @lmcmz why do you disconnect from the same topic twice? edit: anyway it should not crash |
Hey @llbartekll, After we disconnect from the topic, it seem like it will still stay in the list of settled session -> |
do you subscribe to |
does it happen in your project? because I cannot reproduce it in sample app. |
Yes, it happens in my project. Somehow, some sessions in the list can't be disconnected, and it keeps in the list (Sign.instance.getSessions). |
ok but does |
btw. does disconnect() throws an error when you call it with the first time? |
I will keep an eye on it. But I do reproduce the disconnect crash frequently, it's kinda annoying since some of the connections will never be able to disconnect. is there a quick fix that we should remove the force |
hey, the crash is fixed, we will release a new version tomorrow so you can upgrade.
I think it won't happen. I believe you were calling a function twice and there were keys removed after a second call, so function did not throw immediately and tried to remove a keys with the second call too. Now it will just throw an error. |
if you like you can test on develop branch already |
Hey @llbartekll, From what I observed the sessionDeletePublisher is not triggering for the first time.
|
It seem like there is some different behavior between |
the function is async and if it does not throw and will return it means that the session has been removed, so you can querry sessions and update your list
it is different behaviour because |
@lmcmz can we cole the issue? |
Yeah, let's close it for now. |
Describe the bug
When disconnecting from topic, SDK crashes sometime.
SDK Version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The pairing or session need to be removed from the list
Screenshots
Device:
The text was updated successfully, but these errors were encountered: