调整图片清理

This commit is contained in:
mo1027728827@qq.com 2022-06-07 18:06:28 +08:00
parent 61773e61d9
commit 3ffda0a0c3
2 changed files with 3 additions and 2 deletions

View File

@ -699,7 +699,6 @@ void hg_scanner::thread_handle_image_process(void)
void hg_scanner::working_begin(void*)
{
final_imgs_.clear();
final_img_index_ = 0;
notify_ui_working_status(STATU_DESC_SCAN_WORKING, SANE_EVENT_WORKING, SCANNER_ERR_OK);
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "[%s] scanning ...\n", hg_log::current_time().c_str());
@ -707,6 +706,8 @@ void hg_scanner::working_begin(void*)
void hg_scanner::working_done(void*)
{
imgs_.Clear();
if(user_cancel_)
final_imgs_.clear();
switch (status_)
{

View File

@ -420,7 +420,7 @@ int hg_scanner_300::stop(void)
LOG_INFO(LOG_LEVEL_DEBUG_INFO,"stop status is busy\r\n");
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
}
//user_cancel_ = true;
user_cancel_ = true;
if (ret == SCANNER_ERR_OK)
{
status_ = SCANNER_ERR_DEVICE_STOPPED;