Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only attach if not already connecting

  • Loading branch information...
commit 75b6b92e6efb111e2fb368893fba3e36ee9ce57f 1 parent 2af6c27
@fjakobs fjakobs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/v8debug/WSV8DebuggerService.js
View
2  lib/v8debug/WSV8DebuggerService.js
@@ -27,7 +27,7 @@ var WSV8DebuggerService = function(socket) {
this.$onAttach.push(callback);
- if (this.$state != "connected") {
+ if (this.$state == "initialized") {
this.$socket.send(JSON.stringify({command: "DebugAttachNode"}));
this.$onMessageHandler = this.$onMessage.bind(this);
this.$socket.on("message", this.$onMessageHandler);
Please sign in to comment.
Something went wrong with that request. Please try again.