fix(plugin-manager): xoa/add dir luu dung dir moi (stale closure); loc plugin file da mat khoi disk; scan VST3 giam timeout module con lai 4s va subprocess 300s
This commit is contained in:
@@ -550,7 +550,7 @@ class PluginManager:
|
||||
for d in dirs:
|
||||
try:
|
||||
r = subprocess.run([exe, "--scan", d], capture_output=True,
|
||||
text=True, timeout=180)
|
||||
text=True, timeout=300)
|
||||
except Exception:
|
||||
continue
|
||||
if r.returncode != 0:
|
||||
@@ -578,6 +578,11 @@ class PluginManager:
|
||||
for e in entries:
|
||||
if e["path"] in seen:
|
||||
continue
|
||||
# Plugin file đã bị xóa khỏi đĩa (dll/vst3 không còn) → loại khỏi
|
||||
# danh sách ngay (không cache entry chết → MASTERING PANEL / nút
|
||||
# Synth không còn hiện plugin không dùng được).
|
||||
if not os.path.exists(e["path"]):
|
||||
continue
|
||||
seen.add(e["path"])
|
||||
uniq.append(e)
|
||||
# Chỉ cache khi bridge tồn tại: kết quả (kể cả rỗng — dir không có
|
||||
|
||||
Reference in New Issue
Block a user