Reload sleeps 1 sec after halt to avoid FFI exception

This commit is contained in:
Mitchell Hashimoto 2010-04-19 21:28:13 -07:00
parent 28eb56b9f8
commit ec90382efe
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ module Vagrant
@runner.add_action(action_klass)
end
end
def after_halt
# This sleep is here to allow the VM to clean itself up. There appears
# nothing [obvious] in the VirtualBox API to automate this. For now, this
# is an interim solution.
sleep 1
end
end
end
end