Skip to content
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

0.8.3: Subscription.Close won't unsubscribe #73

Open
powerman opened this issue Mar 3, 2023 · 0 comments
Open

0.8.3: Subscription.Close won't unsubscribe #73

powerman opened this issue Mar 3, 2023 · 0 comments

Comments

@powerman
Copy link

powerman commented Mar 3, 2023

This result in "105: already subscribed" error if we'll do this:

subs1, _ := client.NewSubscription(ch)
subs1.Subscribe()
subs1.Close()
subs2, _ := client.NewSubscription(ch)
subs2.Subscribe()

This happens because Close calls s.centrifuge.removeSubscription() before s.centrifuge.unsubscribe().

We're using Centrifugo v3, so I didn't tested is this issue actual for 0.9.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant