fix(socket) exit on cloudcmd command

This commit is contained in:
coderaiser 2013-11-14 08:08:27 +00:00
parent 071ad9efee
commit 446ce53704

View file

@ -132,8 +132,10 @@
if( Util.isContainStrAtBegin(pCommand, ' ') ) {
pCommand = Util.removeStr(pCommand, ' ');
if( Util.isContainStrAtBegin(pCommand, 'update') && update )
if( Util.isContainStrAtBegin(pCommand, 'update') && update ) {
update.get();
lRet = true;
}
if( Util.strCmp(pCommand, 'exit') )
if(WIN32)
@ -148,8 +150,7 @@
stderr : null
});
Util.log('received from client: ' + pCommand);
Util.log('sended to client: ' + lMsg);
lRet = true;
}
} else if( Util.isContainStrAtBegin(pCommand, 'cd ') ) {
lDir = Util.removeStr(pCommand, 'cd ');