properly broadcasting a user.active change

v1.18.x
Julian Lam 12 years ago
parent 7827534819
commit 64ca3d7444

@ -246,13 +246,13 @@ var config = require('../config.js'),
}
if (callback === undefined) {
global.socket.emit('api:user.active.get', returnObj)
io.sockets.emit('api:user.active.get', returnObj)
} else {
callback(returnObj);
}
});
} else {
global.socket.emit('api:user.active.get', returnObj)
io.sockets.emit('api:user.active.get', returnObj)
}
});
},

Loading…
Cancel
Save