Skip to content
This repository
Browse code

make reconnects work for unix sockets

  • Loading branch information...
commit 3d4b3d5d1907c6753d13025d83495e6bed88f53f 1 parent 2f85ab5
James Halliday authored April 07, 2012

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  index.js
  2. 2  package.json
2  index.js
@@ -69,7 +69,7 @@ dnode.prototype.connect = function () {
69 69
     
70 70
     if (params.reconnect) {
71 71
         stream.on('error', (function (err) {
72  
-            if (err.code === 'ECONNREFUSED') {
  72
+            if (err.code === 'ECONNREFUSED' || err.code === 'ENOENT') {
73 73
                 if (client) client.emit('refused');
74 74
                 
75 75
                 setTimeout((function () {
2  package.json
... ...
@@ -1,6 +1,6 @@
1 1
 {
2 2
     "name" : "dnode",
3  
-    "version" : "0.9.8",
  3
+    "version" : "0.9.9",
4 4
     "description" : "freestyle RPC",
5 5
     "main" : "./index.js",
6 6
     "keywords" : [

0 notes on commit 3d4b3d5

Please sign in to comment.
Something went wrong with that request. Please try again.