mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: only close succeeded patches
This commit is contained in:
parent
5650e34432
commit
b8151ebccb
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||
if (stopOnError && patchResult.isError()) return@sequence
|
||||
}
|
||||
} finally {
|
||||
executedPatches.values.reversed().forEach { (patch, _) ->
|
||||
executedPatches.values.filter { it.success }.reversed().forEach { (patch, _) ->
|
||||
patch.close()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue