Closed aletheia7 closed 2 months ago
Same issue observed when upgrading to 3.1.0:
panic: send on closed channel
goroutine 98 [running]:
github.com/go-stomp/stomp/v3.(*Subscription).closeChannel(...)
/home/dev/.gvm/pkgsets/go1.21.8/global/pkg/mod/github.com/go-stomp/stomp/v3@v3.1.0/subscription.go:150
github.com/go-stomp/stomp/v3.(*Subscription).Unsubscribe(0x0?, {0x0, 0x0, 0x0?})
/home/dev/.gvm/pkgsets/go1.21.8/global/pkg/mod/github.com/go-stomp/stomp/v3@v3.1.0/subscription.go:89 +0x533
Version 3.0.5 doesn't have this bug when unsubscribe, I suspect it's due to the following fix that closed the channel:
closed by #135
Version: v3.1.0
Getting golang "panic: send on closd channel" error on Subscribe and Unsubscribe.