diff options
author | Anton Titov <[email protected]> | 2020-01-24 14:47:06 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-24 14:47:06 +0300 |
commit | 648aac1b800fe506fe41f9143c2a4a2d95be408d (patch) | |
tree | 850030126480806fc1b7d1780a09347673c53f52 | |
parent | a60543f917d237a9283b39c6d123f14807d22b69 (diff) | |
parent | dea032c3046bb88579dcbd7100f5adc73da8a4b2 (diff) |
Merge pull request #233 from camohob/master
BUGFIX: deadlock on timer update in error buffer
-rw-r--r-- | error_buffer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/error_buffer.go b/error_buffer.go index 0eaf03b6..0fc020c7 100644 --- a/error_buffer.go +++ b/error_buffer.go @@ -92,8 +92,8 @@ func (eb *errBuffer) Len() int { func (eb *errBuffer) Write(p []byte) (int, error) { eb.mu.Lock() eb.buf = append(eb.buf, p...) - eb.update <- nil eb.mu.Unlock() + eb.update <- nil return len(p), nil } |