Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-12-22 09:31:30 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-30 12:35:11 +0300
commit797aa97e19bbb7b9536e2a7da03012e2db018d23 (patch)
tree49a472ca4a9c856747a1080d0663d1fa92b08656 /lib
parent8d82ec21308812132a71afe45c5bc517b4a43354 (diff)
Fix test-debugger-client
Diffstat (limited to 'lib')
-rw-r--r--lib/_debugger.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js
index 9f95e896ce5..5c0dd555010 100644
--- a/lib/_debugger.js
+++ b/lib/_debugger.js
@@ -131,17 +131,16 @@ exports.Client = Client;
Client.prototype._onResponse = function(res) {
- console.error(res);
for (var i = 0; i < this._reqCallbacks.length; i++) {
var cb = this._reqCallbacks[i];
if (this._reqCallbacks[i].request_seq == cb.request_seq) break;
}
- if (cb) {
+ if (res.headers.Type == 'connect') {
+ // do nothing
+ } else if (cb) {
this._reqCallbacks.splice(i, 1);
cb(res.body);
- } else if (res.headers.Type == 'connect') {
- // do nothing
} else {
console.error("unhandled res: %j", res.body);
}