1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-23 21:44:40 +02:00

Exclusive file lock is released prematurely (#339)

This commit is contained in:
Frederik Ring
2024-02-01 18:14:18 +01:00
committed by GitHub
parent c3daeacecb
commit 63b545787e

View File

@@ -15,7 +15,9 @@ func main() {
}
unlock, err := s.lock("/var/lock/dockervolumebackup.lock")
defer s.must(unlock())
defer func() {
s.must(unlock())
}()
s.must(err)
defer func() {