diff options
Diffstat (limited to 'lib/sync.rb')
-rw-r--r-- | lib/sync.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sync.rb b/lib/sync.rb index 1cf70a66ab..6d79cc26bf 100644 --- a/lib/sync.rb +++ b/lib/sync.rb @@ -297,8 +297,8 @@ module Sync_m private :sync_try_lock_sub def sync_synchronize(mode = EX) + sync_lock(mode) begin - sync_lock(mode) yield ensure sync_unlock |