lib/whirly.rb in whirly-0.2.3 vs lib/whirly.rb in whirly-0.2.4
- old
+ new
@@ -165,11 +165,14 @@
end
end
# idiomatic block syntax support
if block_given?
- yield
- Whirly.stop
+ begin
+ yield
+ ensure
+ Whirly.stop
+ end
end
true
end