mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-06-13 05:37:38 +02:00
fix: only close succeeded patches
This commit is contained in:
@ -364,7 +364,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
if (stopOnError && patchResult.isError()) return@sequence
|
if (stopOnError && patchResult.isError()) return@sequence
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
executedPatches.values.reversed().forEach { (patch, _) ->
|
executedPatches.values.filter { it.success }.reversed().forEach { (patch, _) ->
|
||||||
patch.close()
|
patch.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user