fixed #21 destroyedSocketID segmentation fault

This commit is contained in:
Brandon Nozaki Miller 2014-09-02 20:48:05 -07:00
parent b49c429220
commit 8ba5ec15e8
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ var ipc=require('../../../node-ipc');
* *
* *************************************/ * *************************************/
ipc.config.id = 'hello'; ipc.config.id = false;
ipc.config.retry = 1000; ipc.config.retry = 1000;
ipc.connectTo( ipc.connectTo(
@ -20,7 +20,7 @@ ipc.connectTo(
ipc.of.world.emit( ipc.of.world.emit(
'app.message', 'app.message',
{ {
id : ipc.config.id, //id : ipc.config.id,
message : 'hello' message : 'hello'
} }
) )

View file

@ -303,7 +303,7 @@ function init(path,config,log,port){
function(){ function(){
for(var i=0, count=server.sockets.length; i<count; i++){ for(var i=0, count=server.sockets.length; i<count; i++){
var socket=server.sockets[i]; var socket=server.sockets[i];
var destroyedSocketId=null; var destroyedSocketId=false;
if(socket){ if(socket){
if(socket.readable) if(socket.readable)