Fix issue with "Waiting for cleanup" message appearing twice in some cases. [closes GH-145]

This commit is contained in:
Mitchell Hashimoto 2010-08-25 22:51:35 -07:00
parent a699122260
commit 3784eb82fb
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
## 0.6.0 (unreleased)
- Fixed issue with "Waiting for cleanup" message appearing twice in
some cases. [GH-145]
- Converted CLI to use Thor. As a tradeoff, there are some backwards
incompatibilities:
* `vagrant package` - The `--include` flag now separates filenames

View File

@ -4,6 +4,7 @@ module Vagrant
# the environment.
class Action
include Util
@@reported_interrupt = false
class << self
# Returns the list of registered actions.
@ -59,8 +60,9 @@ module Vagrant
abort
end
env.ui.info "Waiting for cleanup before exiting..."
env.ui.info "Waiting for cleanup before exiting..." if !@@reported_interrupt
action_environment.error!(:interrupt)
@@reported_interrupt = true
end
Busy.busy(int_callback) { callable.call(action_environment) }