@@ -1750,6 +1750,7 @@ ErrorCodeEnum SpEntity::GetToken(CSimpleString &channelId, CSimpleString &token)
ErrorCodeEnum SpEntity::SetNewPathToFirewall(CSimpleString &pszPath, int maxWaitMs)
{
+ maxWaitMs = 50;
if (pszPath.GetLength() == 0) {
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("SetNewPathToFirewall param error");
return Error_Param;
@@ -316,7 +316,7 @@ bool sp_AddFirewallRuleByPath(const char *pszPath)
returnRet = returnRet && ret;
}
FirewallController::Shutdown();
- return returnRet ? Error_Succeed : Error_Bug;
+ return returnRet;
void listFolders(const std::string& dirPath, std::vector<std::string>& folders) {