Skip to content

Commit 8705704

Browse files
committed
Fix canceling reconnect still reconnecting
1 parent e6e02d5 commit 8705704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/remote.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ export class Remote {
284284
)
285285
if (!result) {
286286
await this.closeRemote()
287+
} else {
288+
await this.reloadWindow()
287289
}
288-
await this.reloadWindow()
289290
return
290291
}
291292

0 commit comments

Comments
 (0)