Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractTorrentEngine memory leak #1475

Open
Him188 opened this issue Jan 10, 2025 · 0 comments
Open

AbstractTorrentEngine memory leak #1475

Him188 opened this issue Jan 10, 2025 · 0 comments
Labels
N 一般优先级 s: torrent 子系统: BT

Comments

@Him188
Copy link
Member

Him188 commented Jan 10, 2025

问题描述

AbstractTorrentEngine.downloader

scope.coroutineContext.job.invokeOnCompletion {
downloader.close()
}

这里会 memory leak. 因为 scope 永远不会关闭, 而 downloader flow 会 emit. 就会持有所有的 ktor client

复现步骤

No response

Ani 版本号

430a4

操作系统

No response

应用日志



@Him188 Him188 added N 一般优先级 s: torrent 子系统: BT labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 一般优先级 s: torrent 子系统: BT
Projects
None yet
Development

No branches or pull requests

1 participant