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)