fixed #25 not retrying if max retries not set
This commit is contained in:
parent
5f5f65bcb8
commit
fb0ef55f81
2 changed files with 6 additions and 2 deletions
|
@ -80,7 +80,11 @@ function connect(){
|
||||||
function(){
|
function(){
|
||||||
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' of '+client.config.maxRetries);
|
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.log(
|
||||||
client.config.id.variable,
|
client.config.id.variable,
|
||||||
'exceeded connection rety amount of'.warn,
|
'exceeded connection rety amount of'.warn,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-ipc",
|
"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.",
|
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",
|
||||||
"main": "node-ipc.js",
|
"main": "node-ipc.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
Loading…
Reference in a new issue