Page MenuHomePhabricator

D11497.id38668.diff
No OneTemporary

D11497.id38668.diff

diff --git a/lib/keyserver-conn/recovery-utils.js b/lib/keyserver-conn/recovery-utils.js
--- a/lib/keyserver-conn/recovery-utils.js
+++ b/lib/keyserver-conn/recovery-utils.js
@@ -180,7 +180,11 @@
source: RecoveryActionSource,
sessionChange: ClientSessionChange,
userStateBeforeRecovery: PreRequestUserState,
+ hasBeenCancelled: () => boolean,
) => {
+ if (hasBeenCancelled()) {
+ return;
+ }
setNewSession(
dispatch,
sessionChange,
@@ -234,6 +238,7 @@
source,
sessionChange,
userStateBeforeRecovery,
+ hasBeenCancelled,
);
}
} catch (e) {
@@ -248,6 +253,7 @@
source,
genericCookieInvalidation,
userStateBeforeRecovery,
+ hasBeenCancelled,
);
throw e;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 11:50 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577231
Default Alt Text
D11497.id38668.diff (871 B)

Event Timeline