Skip to content

Commit

Permalink
close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
mwei0210 committed Mar 28, 2024
1 parent a8900f8 commit beda3ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/ws/subscription.go
Original file line number Diff line number Diff line change
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 beda3ac

Please sign in to comment.