mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(socket) add " "
This commit is contained in:
parent
7e6d21a52f
commit
2d54df5988
1 changed files with 4 additions and 4 deletions
|
|
@ -79,7 +79,7 @@
|
|||
lRet = io.sockets.on('connection', function (socket) {
|
||||
++lConnNum;
|
||||
|
||||
if(!OnMessageFuncs[lConnNum]) {
|
||||
if (!OnMessageFuncs[lConnNum]) {
|
||||
lMsg = log(lConnNum, 'connected\n');
|
||||
|
||||
jsonSend(socket, {
|
||||
|
|
@ -110,7 +110,7 @@
|
|||
function disconnect(pParams) {
|
||||
var lConnNum, lRet = Util.checkObj(pParams, ['params']);
|
||||
|
||||
if(lRet) {
|
||||
if (lRet) {
|
||||
lConnNum = pParams.params;
|
||||
OnMessageFuncs [lConnNum] =
|
||||
ClientFuncs [lConnNum] = null;
|
||||
|
|
@ -164,14 +164,14 @@
|
|||
* change code page to unicode becouse
|
||||
* windows use unicode on non English versions
|
||||
*/
|
||||
if(WIN32) {
|
||||
if (WIN32) {
|
||||
lWinCommand = pCommand.toUpperCase();
|
||||
|
||||
if (Win32Commands.indexOf(lWinCommand) >= 0)
|
||||
pCommand = 'chcp 65001 |' + pCommand;
|
||||
}
|
||||
|
||||
if(!ClientFuncs[pConnNum])
|
||||
if (!ClientFuncs[pConnNum])
|
||||
ClientFuncs[pConnNum] = getExec(function(json, pError, pStderr) {
|
||||
log(pConnNum, pError, 'error');
|
||||
log(pConnNum, pStderr, 'stderror');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue