centrifuge-go
centrifuge-go copied to clipboard
0.8.3: Subscription.Close won't unsubscribe
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.