mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
Fix Downloader Memory Leak (#880)
This commit is contained in:
@@ -53,7 +53,7 @@ abstract class ChaptersFilesProvider(val mangaId: Int, val chapterId: Int) : Dow
|
|||||||
step(null, false) // don't throw on canceled download here since we can't do anything
|
step(null, false) // don't throw on canceled download here since we can't do anything
|
||||||
}
|
}
|
||||||
.launchIn(scope)
|
.launchIn(scope)
|
||||||
}
|
}.first.close()
|
||||||
} finally {
|
} finally {
|
||||||
// always cancel the page progress job even if it throws an exception to avoid memory leaks
|
// always cancel the page progress job even if it throws an exception to avoid memory leaks
|
||||||
pageProgressJob?.cancel()
|
pageProgressJob?.cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user