From: Bastian Dehn Date: Tue, 6 Feb 2024 20:38:44 +0000 (+0100) Subject: cancle started flag off X-Git-Tag: v1.0.0^2~326 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=3efa9a9d39d2e23e8fa45833dd01a23dfa6f17da;p=sane-kds-s2000w-net.git cancle started flag off --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 9fc24e8..6ab2e1a 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -235,6 +235,7 @@ SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data, int length_count = 0; while(length_count < max_length) { if (cancel) { + scan_started = 0; *length = 0; kds_s2000w_handler_stop_scan(); sleep(1);