mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 23:09:27 +00:00
event: add missing unlock before panic (#20653)
This commit is contained in:
parent
8045504abf
commit
1821328162
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ func (f *Feed) Send(value interface{}) (nsent int) {
|
||||||
|
|
||||||
if !f.typecheck(rvalue.Type()) {
|
if !f.typecheck(rvalue.Type()) {
|
||||||
f.sendLock <- struct{}{}
|
f.sendLock <- struct{}{}
|
||||||
|
f.mu.Unlock()
|
||||||
panic(feedTypeError{op: "Send", got: rvalue.Type(), want: f.etype})
|
panic(feedTypeError{op: "Send", got: rvalue.Type(), want: f.etype})
|
||||||
}
|
}
|
||||||
f.mu.Unlock()
|
f.mu.Unlock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue