Skip to content

Commit

Permalink
Fix Downloader Memory Leak (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 authored Feb 19, 2024
1 parent 07e0110 commit b18c155
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
.launchIn(scope)
}
}.first.close()
} finally {
// always cancel the page progress job even if it throws an exception to avoid memory leaks
pageProgressJob?.cancel()
Expand Down

0 comments on commit b18c155

Please sign in to comment.