File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/src/main/java/at/bitfire/cert4android Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,16 @@ class UserDecisionRegistry private constructor(
5353 // User decision possible → remember request in pendingDecisions so that a later decision will be applied to this request
5454
5555 cont.invokeOnCancellation {
56- val decisionsList = pendingDecisions[cert]
57-
58- // remove from pending decisions on cancellation
5956 synchronized(pendingDecisions) {
57+ val decisionsList = pendingDecisions[cert]
58+
59+ // remove from pending decisions on cancellation
6060 decisionsList?.remove(cont)
61- }
6261
63- // Remove decisions list if empty
64- if (decisionsList?.isEmpty() == true )
65- pendingDecisions.remove(cert)
62+ // Remove decisions list if empty
63+ if (decisionsList?.isEmpty() == true )
64+ pendingDecisions - = cert
65+ }
6666
6767 val nm = NotificationUtils .createChannels(context)
6868 nm.cancel(CertUtils .getTag(cert), NotificationUtils .ID_CERT_DECISION )
You can’t perform that action at this time.
0 commit comments