mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-27 07:20:26 +01:00
wrap zip close with mutex
This commit is contained in:
1 parent
9e15b464ba
commit
70d585759d
1 file changed
+3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user