修正:系统设置/连接控制/会话超时 选项设置为0时保存设置报参数错误的问题。

pull/173/head
Apex Liu 2018-12-28 00:45:43 +08:00
parent 143fca3fea
commit ccbfe0f124
1 changed files with 4 additions and 4 deletions

View File

@ -477,10 +477,10 @@ void TsHttpRpc::_rpc_func_set_config(const Json::Value& json_param, ex_astr& buf
} }
int noop_timeout = json_param["noop_timeout"].asUInt(); int noop_timeout = json_param["noop_timeout"].asUInt();
if (noop_timeout == 0) { // if (noop_timeout == 0) {
_create_json_ret(buf, TPE_PARAM); // _create_json_ret(buf, TPE_PARAM);
return; // return;
} // }
EXLOGV("[core] set run-time config:\n"); EXLOGV("[core] set run-time config:\n");
EXLOGV("[core] noop_timeout = %dm\n", noop_timeout); EXLOGV("[core] noop_timeout = %dm\n", noop_timeout);