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 29, 2024
1 parent d7c71ca commit 6012aa6
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 6012aa6

Please sign in to comment.