mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 21:34:25 +02:00
fix: only close succeeded patches
This commit is contained in:
parent
5650e34432
commit
b8151ebccb
@ -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…
x
Reference in New Issue
Block a user