mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-08 15:41:18 +02:00
wrap zip close with mutex
This commit is contained in:
@@ -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