diff --git a/lib/hobo/busy.rb b/lib/hobo/busy.rb index 0ac41c00e..1120c8981 100644 --- a/lib/hobo/busy.rb +++ b/lib/hobo/busy.rb @@ -31,6 +31,11 @@ module Hobo Busy.busy = false end end + + # In the case were an exception is thrown by the wrapped code + # make sure to set busy to sane state and reraise the error + ensure + Busy.busy = false end end end