changed rescue to ensure block in Busy.busy
This commit is contained in:
parent
168c7e0f39
commit
d1912c811f
|
@ -31,6 +31,11 @@ module Hobo
|
||||||
Busy.busy = false
|
Busy.busy = false
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue