fix: release per-download status_queue proxy on close to stop FD leak

This commit is contained in:
Matt Van Horn
2026-07-19 01:13:16 -07:00
parent a23d1689e3
commit 4cf2b1b0d0
2 changed files with 39 additions and 2 deletions
+5 -2
View File
@@ -758,8 +758,11 @@ class Download:
def close(self):
log.info(f"Closing download process for: {self.info.title}")
if self.started():
self.proc.close()
try:
if self.started():
self.proc.close()
finally:
self.status_queue = None
def running(self):
try: