diff --git a/internal/ioutil/ioutil.go b/internal/ioutil/ioutil.go index 2cd4136c5..2cb07b894 100644 --- a/internal/ioutil/ioutil.go +++ b/internal/ioutil/ioutil.go @@ -424,6 +424,7 @@ func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, f func SafeClose[T any](c chan<- T) { if c != nil { close(c) + return } // Print stack to check who is sending `c` as `nil` // without crashing the server.