From 7c8053cb2bd23dc468a50f57a7f27a2cdf7013a7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 12 Apr 2014 16:38:01 -0700 Subject: [PATCH] hosts/windows: don't remove the rdp file, race condition --- plugins/hosts/windows/cap/rdp.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/hosts/windows/cap/rdp.rb b/plugins/hosts/windows/cap/rdp.rb index 96c7eb73e..eaa98e2d6 100644 --- a/plugins/hosts/windows/cap/rdp.rb +++ b/plugins/hosts/windows/cap/rdp.rb @@ -25,10 +25,7 @@ module VagrantPlugins # Launch it Vagrant::Util::PowerShell.execute("mstsc", config.path) ensure - if config - config.close - config.unlink - end + config.close if config end end end