##// END OF EJS Templates
lock: fix race in lock-breaking code...
Valentin Gatien-Baron -
r44108:039fbd14 default
parent child Browse files
Show More
@@ -355,6 +355,9 b' class lock(object):'
355 355 # held, or can race and break valid lock.
356 356 try:
357 357 with lock(self.vfs, self.f + b'.break', timeout=0):
358 locker = self._readlock()
359 if not self._lockshouldbebroken(locker):
360 return locker
358 361 self.vfs.unlink(self.f)
359 362 except error.LockError:
360 363 return locker
General Comments 0
You need to be logged in to leave comments. Login now