good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 18213281 authored by Boqin Qin's avatar Boqin Qin Committed by GitHub
Browse files

event: add missing unlock before panic (#20653)

parent 8045504a
Branches
Tags
No related merge requests found
...@@ -138,6 +138,7 @@ func (f *Feed) Send(value interface{}) (nsent int) { ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment