From 70d585759d1704a70bedc161481ca8caf8c63fd9 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 23 Aug 2026 00:05:47 +0300 Subject: [PATCH] wrap zip close with mutex --- core/backup_create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/backup_create.go b/core/backup_create.go index 715ecd3c..e0c199a5 100644 --- a/core/backup_create.go +++ b/core/backup_create.go @@ -322,6 +322,9 @@ func newZipWriter(zipFilePath string) (*zipWriter, error) { } func (z *zipWriter) close() error { + z.mu.Lock() + defer z.mu.Unlock() + var wErr, fErr error if z.w != nil {