From 23ae7b2987acbe03d05fae2ce4db61df56bba481 Mon Sep 17 00:00:00 2001 From: Geoff Gustafson Date: Fri, 2 Mar 2018 08:41:12 -0800 Subject: [PATCH] don't reconnect, leave existing connection open JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com --- jerry-debugger/src/lib/debugger-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-debugger/src/lib/debugger-client.ts b/jerry-debugger/src/lib/debugger-client.ts index 87acbaec2b..e97352aaab 100644 --- a/jerry-debugger/src/lib/debugger-client.ts +++ b/jerry-debugger/src/lib/debugger-client.ts @@ -37,7 +37,7 @@ export class JerryDebugger { connect() { if (this.socket) { - this.disconnect(); + return Promise.resolve(); } this.socket = new WebSocket(`ws://${this.host}:${this.port}/jerry-debugger`); this.socket.binaryType = 'arraybuffer';