From: Bastian Dehn Date: Wed, 28 Feb 2024 20:03:51 +0000 (+0100) Subject: reset cancel by cancel run X-Git-Tag: v1.0.0^2~154 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=b9d7da13ee2d48dc35b8259f043cfa730f4283f1;p=sane-kds-s2000w-net.git reset cancel by cancel run --- 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);