lib/mongoid/lock/synch_methods.rb in mongoid-lock-0.0.5 vs lib/mongoid/lock/synch_methods.rb in mongoid-lock-0.0.6

- old
+ new

@@ -30,10 +30,10 @@ raise Mongoid::Lock::UnsynchronizedAccess.new(ident) end end def synchronized(&block) - self.local_mutex.synchronized { + self.local_mutex.synchronize { self.lock_acquire begin block.call() ensure self.lock_release \ No newline at end of file