Skip to content

Commit dab4cb7

Browse files
Fixes case where integration connect flow wasn't being canceled
1 parent 8c62a4f commit dab4cb7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plus/integrations/integrationService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,13 @@ export class IntegrationService implements Disposable {
244244
if (account != null) {
245245
try {
246246
const exchangeToken = await this.container.accountAuthentication.getExchangeToken();
247-
await openUrl(this.container.getGkDevExchangeUri(exchangeToken, `connect?${query}`).toString(true));
247+
if (
248+
!(await openUrl(
249+
this.container.getGkDevExchangeUri(exchangeToken, `connect?${query}`).toString(true),
250+
))
251+
) {
252+
return false;
253+
}
248254
} catch (ex) {
249255
Logger.error(ex, scope);
250256
if (!(await openUrl(this.container.getGkDevUri('connect', query).toString(true)))) {

0 commit comments

Comments
 (0)