release lock before passing value to channel (#3)

This commit is contained in:
Adam Babik 2019-02-11 09:34:12 +01:00 committed by GitHub
parent 0c9bf7d497
commit e7caa232b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,10 +54,10 @@ func (s *signalForwarder) Start() {
s.Lock()
out, found := s.out[sig.RequestID]
s.Unlock()
if found {
out <- sig
}
s.Unlock()
}
}