-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 in my app #67
Comments
Hello @UrielFrankel - seems that you can easily reproduce this? Can you provide example code? |
I can't reproduce it but I can send you what I do:
I suspect that calling removeSubscription and immediately close is the problem. |
Thanks, I'll experiment - in general you need to call Close when you don't need client anymore. After calling Close client is unusable. But in this case I suppose centrifuge-java/centrifuge/src/main/java/io/github/centrifugal/centrifuge/Client.java Line 378 in f11c20c
onClosed ).
|
Good news, I was able to reproduce it in my app. I called for close before i was fully connected and close calls disconnect. |
Reproduced locally and opened #71 |
The fix is shipped in 0.3.1 |
Here is the stack trace:
I have zero clue what happen. As you can see I can't even guard it with try/catch. I called unsubscribe() and then close(). Is that the problem? Should I put the close() in the onDestroy of the App? thanks.
The text was updated successfully, but these errors were encountered: