We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42a98a commit f4ace05Copy full SHA for f4ace05
lib/src/main/java/at/bitfire/cert4android/UserDecisionRegistry.kt
@@ -94,11 +94,8 @@ class UserDecisionRegistry private constructor(
94
95
// continue work that's waiting for decisions
96
synchronized(pendingDecisions) {
97
- pendingDecisions[cert]?.iterator()?.let { iter ->
98
- while (iter.hasNext()) {
99
- iter.next().resume(trusted)
100
- iter.remove()
101
- }
+ pendingDecisions[cert]?.forEach { cont ->
+ cont.resume(trusted)
102
}
103
104
// remove certificate from pendingDecisions so UI can be shown again in future
0 commit comments