diff --git a/rpc/ws/subscription.go b/rpc/ws/subscription.go index c1bebf6d..c209cdaf 100644 --- a/rpc/ws/subscription.go +++ b/rpc/ws/subscription.go @@ -61,4 +61,6 @@ func (s *Subscription) Unsubscribe() { func (s *Subscription) unsubscribe(err error) { s.closeFunc(err) + close(s.stream) + close(s.err) }