aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/ctx.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 30dd9811c..693ce05ed 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -70,7 +70,7 @@ export class Ctx {
70 await this.client.onReady(); 70 await this.client.onReady();
71 for (const delay of [2, 4, 6, 8, 10, null]) { 71 for (const delay of [2, 4, 6, 8, 10, null]) {
72 try { 72 try {
73 return await this.client.sendRequest(method, param, token); 73 return await (token ? this.client.sendRequest(method, param, token) : this.client.sendRequest(method, param));
74 } catch (e) { 74 } catch (e) {
75 if ( 75 if (
76 e.code === lc.ErrorCodes.ContentModified && 76 e.code === lc.ErrorCodes.ContentModified &&