fix return value of stop action.

This commit is contained in:
gb 2023-12-04 14:52:00 +08:00
parent b78afdc9a0
commit ebd227d27d
1 changed files with 1 additions and 1 deletions

View File

@ -4332,7 +4332,7 @@ int hg_scanner::stop(void)
{
while (is_running() != THREAD_RUNNING_IDLE)
std::this_thread::sleep_for(std::chrono::milliseconds(3));
ret = status_;
//ret = status_; // the return value is for 'stop' action, but not final statu !!!
}
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "user stopped result = %s\n", hg_scanner_err_description(ret));