From dea032c3046bb88579dcbd7100f5adc73da8a4b2 Mon Sep 17 00:00:00 2001 From: camohob Date: Fri, 24 Jan 2020 13:43:02 +0300 Subject: BUGFIX: deadlock on timer update --- error_buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'error_buffer.go') 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 } -- cgit v1.2.3