fixed #21 destroyedSocketID segmentation fault
This commit is contained in:
parent
b49c429220
commit
8ba5ec15e8
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ var ipc=require('../../../node-ipc');
|
|||
*
|
||||
* *************************************/
|
||||
|
||||
ipc.config.id = 'hello';
|
||||
ipc.config.id = false;
|
||||
ipc.config.retry = 1000;
|
||||
|
||||
ipc.connectTo(
|
||||
|
@ -20,7 +20,7 @@ ipc.connectTo(
|
|||
ipc.of.world.emit(
|
||||
'app.message',
|
||||
{
|
||||
id : ipc.config.id,
|
||||
//id : ipc.config.id,
|
||||
message : 'hello'
|
||||
}
|
||||
)
|
||||
|
|
|
@ -303,7 +303,7 @@ function init(path,config,log,port){
|
|||
function(){
|
||||
for(var i=0, count=server.sockets.length; i<count; i++){
|
||||
var socket=server.sockets[i];
|
||||
var destroyedSocketId=null;
|
||||
var destroyedSocketId=false;
|
||||
|
||||
if(socket){
|
||||
if(socket.readable)
|
||||
|
|
Loading…
Reference in a new issue