mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-06-12 05:07:46 +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
|
||||
}
|
||||
} finally {
|
||||
executedPatches.values.reversed().forEach { (patch, _) ->
|
||||
executedPatches.values.filter { it.success }.reversed().forEach { (patch, _) ->
|
||||
patch.close()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user