mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* prelude.rb (Mutex::synchronize): capture exception from unlock.
[ruby-dev:32935] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f309847177
commit
6871c34274
2 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ class Mutex
|
|||
begin
|
||||
yield
|
||||
ensure
|
||||
self.unlock
|
||||
self.unlock rescue nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue