Skip to content

Commit

Permalink
don't reconnect, leave existing connection open
Browse files Browse the repository at this point in the history
JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
  • Loading branch information
grgustaf committed Mar 2, 2018
1 parent 218cf08 commit 23ae7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jerry-debugger/src/lib/debugger-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 23ae7b2

Please sign in to comment.