fixed #25 not retrying if max retries not set

This commit is contained in:
Brandon Nozaki Miller 2014-09-06 16:28:49 -07:00
parent 5f5f65bcb8
commit fb0ef55f81
2 changed files with 6 additions and 2 deletions

View File

@ -80,7 +80,11 @@ function connect(){
function(){
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' of '+client.config.maxRetries);
if(client.config.stopRetrying || client.retriesRemaining<1){
if(
client.config.maxRetries!==false && (
client.config.stopRetrying || client.retriesRemaining<1
)
){
client.log(
client.config.id.variable,
'exceeded connection rety amount of'.warn,

View File

@ -1,6 +1,6 @@
{
"name": "node-ipc",
"version": "1.1.10",
"version": "1.1.11",
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",
"main": "node-ipc.js",
"directories": {