fix return value of stop action.
This commit is contained in:
parent
b78afdc9a0
commit
ebd227d27d
|
@ -4332,7 +4332,7 @@ int hg_scanner::stop(void)
|
||||||
{
|
{
|
||||||
while (is_running() != THREAD_RUNNING_IDLE)
|
while (is_running() != THREAD_RUNNING_IDLE)
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(3));
|
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));
|
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "user stopped result = %s\n", hg_scanner_err_description(ret));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue