Skip to content

Commit 1821328

Browse files
author
Boqin Qin
authored
event: add missing unlock before panic (#20653)
1 parent 8045504 commit 1821328

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

event/feed.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func (f *Feed) Send(value interface{}) (nsent int) {
138138

139139
if !f.typecheck(rvalue.Type()) {
140140
f.sendLock <- struct{}{}
141+
f.mu.Unlock()
141142
panic(feedTypeError{op: "Send", got: rvalue.Type(), want: f.etype})
142143
}
143144
f.mu.Unlock()

0 commit comments

Comments
 (0)