fix(socket) ret -> io

This commit is contained in:
coderaiser 2014-01-28 07:25:25 -05:00
parent 3678f2ea8d
commit 5f922ba16d
2 changed files with 9 additions and 7 deletions

View file

@ -76,14 +76,18 @@
lHTTPS = 'https://',
lSockets = function(pServer) {
var lListen, msg, status;
var listen, msg,
status = 'off';
if (lConfig.socket && Socket) {
lListen = Socket.listen(pServer);
Console.init();
listen = Socket.listen(pServer);
if (listen) {
status = 'on';
Console.init();
}
}
status = lListen ? 'on' : 'off';
msg = CloudFunc.formatMsg('sockets', '', status);
Util.log(msg);

View file

@ -37,8 +37,6 @@
* @pServer {Object} started server object
*/
function listen(pServer) {
var ret;
if (io) {
io = io.listen(pServer);
@ -65,6 +63,6 @@
]);
}
return ret;
return io;
}
})();