清空管道休眠去掉

This commit is contained in:
13038267101 2023-11-28 11:20:55 +08:00
parent e5a395d1fc
commit 3dca020d69
1 changed files with 2 additions and 2 deletions

View File

@ -829,9 +829,9 @@ int hg_scanner_239::discard_all_images(void)
ret = io_->read_interrupt(buf, &size); ret = io_->read_interrupt(buf, &size);
} }
} }
io_->set_timeout(oto); io_->set_timeout(oto);
} }
std::this_thread::sleep_for(std::chrono::milliseconds(200)); //std::this_thread::sleep_for(std::chrono::milliseconds(200));
if (pre_int) if (pre_int)
VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "prev-connection has left %d interrupt packet(s) && %d image(s).\n", pre_int, pre_img); VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "prev-connection has left %d interrupt packet(s) && %d image(s).\n", pre_int, pre_img);