##// END OF EJS Templates
lock: clear postrelease hooks list after usage...
Gregory Szorc -
r28959:518c3e39 default
parent child Browse files
Show More
@@ -234,6 +234,8 b' class lock(object):'
234 if not self._parentheld:
234 if not self._parentheld:
235 for callback in self.postrelease:
235 for callback in self.postrelease:
236 callback()
236 callback()
237 # Prevent double usage and help clear cycles.
238 self.postrelease = None
237
239
238 def release(*locks):
240 def release(*locks):
239 for lock in locks:
241 for lock in locks:
General Comments 0
You need to be logged in to leave comments. Login now