mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(socket) ret -> io
This commit is contained in:
parent
3678f2ea8d
commit
5f922ba16d
2 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue