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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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() {