From d0a267adb4527674f718c76943e507ce1ee54bbb Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Mon, 23 Oct 2023 11:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4sane=5Fcancel=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgsane/sane_hg_mdw.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hgsane/sane_hg_mdw.cpp b/hgsane/sane_hg_mdw.cpp index e7aae27..ea7f5ad 100644 --- a/hgsane/sane_hg_mdw.cpp +++ b/hgsane/sane_hg_mdw.cpp @@ -1708,6 +1708,7 @@ SANE_Status hg_sane_middleware::read(SANE_Handle h, void* buf, int* bytes) } SANE_Status hg_sane_middleware::stop(SANE_Handle h) { + LOG_INFO(LOG_LEVEL_ALL, "sane_cancel\n"); scanner_handle hs = find_openning_device(h); if(hs) @@ -2602,8 +2603,6 @@ extern "C" { // avoid compiler exporting name in C++ style !!! } void inner_sane_cancel(SANE_Handle handle) { - LOG_INFO(LOG_LEVEL_ALL, "sane_cancel\n"); - hg_sane_middleware::instance()->stop(handle); } SANE_Status inner_sane_set_io_mode(SANE_Handle handle, SANE_Bool non_blocking)