From d66eeed395a17a073a68797c98016745da9f78ea Mon Sep 17 00:00:00 2001 From: Zach Koch Date: Tue, 1 Oct 2013 13:45:32 -0700 Subject: [PATCH] Fixing pubnub brokenness --- node.js/pubnub.js | 1 + 1 file changed, 1 insertion(+) diff --git a/node.js/pubnub.js b/node.js/pubnub.js index 6abc0abc2..84536dfe2 100644 --- a/node.js/pubnub.js +++ b/node.js/pubnub.js @@ -1063,6 +1063,7 @@ function xdr( setup ) { finished(); }); }); + request.on('error', function(){done(1, {"error" : "Network Reset Error"})}); request.end(); request.timeout = xhrtme;