From 446ce5370490698cce907701f822b4e5e594fb1d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 14 Nov 2013 08:08:27 +0000 Subject: [PATCH] fix(socket) exit on cloudcmd command --- lib/server/socket.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/server/socket.js b/lib/server/socket.js index 341e261c..f72e116c 100644 --- a/lib/server/socket.js +++ b/lib/server/socket.js @@ -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 ');