Skip to content

Commit

Permalink
fix: only close succeeded patches
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 13, 2023
1 parent 5650e34 commit b8151eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit b8151eb

Please sign in to comment.