Revert "changed rescue to ensure block in Busy.busy"
Tests ensure that the ensure block within the mutex handles setting busy to false in the case of an exception.
This commit is contained in:
parent
d1912c811f
commit
dccfeafa2e
|
@ -31,11 +31,6 @@ 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
|
||||
|
|
Loading…
Reference in New Issue