diff options
author | camohob <[email protected]> | 2020-01-24 13:43:02 +0300 |
---|---|---|
committer | camohob <[email protected]> | 2020-01-24 13:43:02 +0300 |
commit | dea032c3046bb88579dcbd7100f5adc73da8a4b2 (patch) | |
tree | cef167a02cdd77448667acad32d455d191d247a4 /error_buffer.go | |
parent | 0db40166c76dacf174c42d3517f484856f493da8 (diff) |
BUGFIX: deadlock on timer update
Diffstat (limited to 'error_buffer.go')
-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 } |