Skip to content

Commit

Permalink
event: add missing unlock before panic (ethereum#20653)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Aug 26, 2024
1 parent 1f45af0 commit b4893ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions event/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (f *Feed) Send(value interface{}) (nsent int) {

if !f.typecheck(rvalue.Type()) {
f.sendLock <- struct{}{}
f.mu.Unlock()
panic(feedTypeError{op: "Send", got: rvalue.Type(), want: f.etype})
}
f.mu.Unlock()
Expand Down

0 comments on commit b4893ce

Please sign in to comment.