changed rescue to ensure block in Busy.busy

This commit is contained in:
John Bender 2010-02-09 07:25:03 -08:00
parent 168c7e0f39
commit d1912c811f
1 changed files with 5 additions and 0 deletions

View File

@ -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