summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcamohob <[email protected]>2020-01-24 13:43:02 +0300
committercamohob <[email protected]>2020-01-24 13:43:02 +0300
commitdea032c3046bb88579dcbd7100f5adc73da8a4b2 (patch)
treecef167a02cdd77448667acad32d455d191d247a4
parent0db40166c76dacf174c42d3517f484856f493da8 (diff)
BUGFIX: deadlock on timer update
-rw-r--r--error_buffer.go2
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
}