fix: stop duplicate observers after confirmed library release
This commit is contained in:
1 parent
4e7efe4f41
commit
b9d52e84cd
3 files changed
+30
-1
No files matched your search
@@ -630,6 +630,8 @@ def release_retained_library(library, evidence_dir, *, block_name=None, block_na
|
||||
if stop is not None and stop.is_set():
|
||||
raise InterruptedError('已停止释放检查')
|
||||
with _library_guard(lease.key):
|
||||
if stop is not None and stop.is_set():
|
||||
raise InterruptedError('已停止释放检查')
|
||||
owner = _owners.get(lease.key)
|
||||
if owner and (not owner['retained'] or owner['depth']):
|
||||
raise LibraryBusy('本应用操作仍在使用库锁。')
|
||||
|
||||
Reference in new issue
Block a user