From b9d7da13ee2d48dc35b8259f043cfa730f4283f1 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Wed, 28 Feb 2024 21:03:51 +0100 Subject: [PATCH] reset cancel by cancel run --- src/kds_s2000w_net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 2da0174..40a7097 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -184,6 +184,7 @@ SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data, handler* h = (handler*) handle; // cancel if (h->read_info->cancel) { + h->read_info->cancel = 0; h->read_info->scan_started = 0; *length = 0; kds_s2000w_handler_stop_scan(h); -- 2.39.5