From 0d6ffec53030d0a360d3fc820eafeaca0b736347 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 26 Jun 2022 18:24:12 +0500 Subject: [PATCH] Fix buffer usage order --- gwp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwp.go b/gwp.go index 49ade98..f241aca 100644 --- a/gwp.go +++ b/gwp.go @@ -128,9 +128,9 @@ func (workerPool *WorkerPool) printProgress() { return } - buf.WriteTo(os.Stderr) - workerPool.lastProgressMessage = buf.String() + + buf.WriteTo(os.Stderr) } // Add sends specified task for execution.