From 519bd0deb56a0b90fb20f250d578c628011c5bff Mon Sep 17 00:00:00 2001
From: Aleksey Kladov <aleksey.kladov@gmail.com>
Date: Tue, 31 Dec 2019 11:44:52 +0100
Subject: Fix #2700

---
 editors/code/src/ctx.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'editors/code/src')

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 {
         await this.client.onReady();
         for (const delay of [2, 4, 6, 8, 10, null]) {
             try {
-                return await this.client.sendRequest(method, param, token);
+                return await (token ? this.client.sendRequest(method, param, token) : this.client.sendRequest(method, param));
             } catch (e) {
                 if (
                     e.code === lc.ErrorCodes.ContentModified &&
-- 
cgit v1.2.3