fixed maxConnection reference fixes #47

This commit is contained in:
Brandon Nozaki Miller 2016-01-04 01:10:58 -08:00
parent 11b428c47d
commit 57a813124e
2 changed files with 4 additions and 2 deletions

View file

@ -9,6 +9,7 @@ var ipc=require('../../../node-ipc');
ipc.config.id = 'world'; ipc.config.id = 'world';
ipc.config.retry= 1500; ipc.config.retry= 1500;
ipc.config.maxConnections=1;
ipc.serveNet( ipc.serveNet(
function(){ function(){

View file

@ -172,7 +172,9 @@ function init(path,config,log,port){
err err
) )
} }
) );
server.server.maxConnections=server.config.maxConnections;
function serverCreated(socket) { function serverCreated(socket) {
server.sockets.push(socket); server.sockets.push(socket);
@ -290,7 +292,6 @@ function init(path,config,log,port){
started started
); );
server.server.maxConnections=server.maxConnections;
return; return;
} }