Make sure to cancel the migrations when closed

This commit is contained in:
Jobobby04 2022-09-07 21:20:09 -04:00
parent 4f68667345
commit 53df21d8db

View File

@ -516,6 +516,9 @@ class MigrationListPresenter(
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
migrationsJob?.cancel() migrationsJob?.cancel()
migratingItems.value.forEach {
it.migrationScope.cancel()
}
} }
/** /**