浏览代码

HPCC-13614 ConfigMgr - Fix Highlighting in file selection

	- Fix auto write to environment.xml file on startup

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Gleb Aronsky 10 年之前
父节点
当前提交
3a27a20ac0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      esp/services/WsDeploy/WsDeployService.cpp

+ 1 - 1
esp/services/WsDeploy/WsDeployService.cpp

@@ -6372,7 +6372,7 @@ void CWsDeployFileInfo::initFileInfo(bool createOrOverwrite, bool bClearEnv)
   try
   {
     StringBuffer err;
-    if (modified && fileExists)
+    if (modified && fileExists && m_userWithLock.length())
       saveEnvironment(NULL, NULL, err);
   }
   catch (IErrnoException* e)