Dont create a new scope on recycle

This commit is contained in:
Syer10
2021-08-23 22:07:14 -04:00
parent d449889334
commit 03ec3049d0

View File

@@ -47,7 +47,6 @@ data class ReaderChapter(val context: CoroutineContext, val chapter: Chapter) {
pageLoader = null
state = State.Wait
scope.cancel()
scope = CoroutineScope(context + Job())
}
sealed class State {