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 0001e71 commit c07edb1
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 @@ -138,6 +138,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 c07edb1

Please sign in to comment.