Skip to content

Commit

Permalink
close stream (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwei0210 committed Mar 28, 2024
1 parent a8900f8 commit e02e3ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/ws/subscription.go
Expand Up @@ -61,4 +61,6 @@ func (s *Subscription) Unsubscribe() {

func (s *Subscription) unsubscribe(err error) {
s.closeFunc(err)
close(s.stream)
close(s.err)
}

0 comments on commit e02e3ca

Please sign in to comment.