From 3ce4d4e6e2bfb842cc7a6d075d47f70b9f2b0a5c Mon Sep 17 00:00:00 2001 From: Cassondra Foesch Date: Tue, 6 Feb 2024 08:51:12 +0000 Subject: [PATCH] one more race-condition causing return --- client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client.go b/client.go index 5bc5df9b..5f457221 100644 --- a/client.go +++ b/client.go @@ -1456,7 +1456,6 @@ func (f *File) WriteTo(w io.Writer) (written int64, err error) { select { case readWork.cur <- writeWork: case <-cancel: - return } // DO NOT return.