mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-24 22:20:28 +01:00
Exclusive file lock is released prematurely (#339)
This commit is contained in:
parent
c3daeacecb
commit
63b545787e
@ -15,7 +15,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unlock, err := s.lock("/var/lock/dockervolumebackup.lock")
|
unlock, err := s.lock("/var/lock/dockervolumebackup.lock")
|
||||||
defer s.must(unlock())
|
defer func() {
|
||||||
|
s.must(unlock())
|
||||||
|
}()
|
||||||
s.must(err)
|
s.must(err)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user