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 f4ace05 commit c5bfc05Copy full SHA for c5bfc05
lib/src/main/java/at/bitfire/cert4android/UserDecisionRegistry.kt
@@ -94,8 +94,11 @@ class UserDecisionRegistry private constructor(
94
95
// continue work that's waiting for decisions
96
synchronized(pendingDecisions) {
97
- pendingDecisions[cert]?.forEach { cont ->
98
- cont.resume(trusted)
+ pendingDecisions[cert]?.iterator()?.let { iter ->
+ while (iter.hasNext()) {
99
+ iter.next().resume(trusted)
100
+ iter.remove()
101
+ }
102
}
103
104
// remove certificate from pendingDecisions so UI can be shown again in future
0 commit comments