Return the value of the yielded block in Busy
This commit is contained in:
parent
fc62f5c3b6
commit
94dd210be7
|
@ -16,7 +16,7 @@ module Vagrant
|
||||||
# to the callback to behave properly and exit the application.
|
# to the callback to behave properly and exit the application.
|
||||||
def busy(sig_callback)
|
def busy(sig_callback)
|
||||||
register(sig_callback)
|
register(sig_callback)
|
||||||
yield
|
return yield
|
||||||
ensure
|
ensure
|
||||||
unregister(sig_callback)
|
unregister(sig_callback)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue