core: MachineIndex cleans up machine lock files
This commit is contained in:
parent
1b5d7c2947
commit
32c9707aa1
|
@ -271,6 +271,12 @@ module Vagrant
|
|||
lock_file = @machine_locks[id]
|
||||
if lock_file
|
||||
lock_file.close
|
||||
begin
|
||||
File.delete(lock_file.path)
|
||||
rescue Errno::EACCES
|
||||
# Another process is probably opened it, no problem.
|
||||
end
|
||||
|
||||
@machine_locks.delete(id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue