fix #869 by removing lock file after unlocking (#947)

This commit is contained in:
Carlton Henderson 2020-02-04 15:47:39 -05:00 committed by GitHub
parent 2241adfcf0
commit bec09851bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,4 +223,7 @@ func (e *Executor) releaseFileLock() {
if err := e.flock.Unlock(); err != nil {
e.debugf("Failed to unlock on file: %s", err)
}
if err := os.Remove(e.flock.Path()); err != nil {
e.debugf("Failed to remove lock file: %s", err)
}
}