]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
cancle started flag off
authorBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 20:38:44 +0000 (21:38 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 6 Feb 2024 20:38:44 +0000 (21:38 +0100)
src/kds_s2000w_net.c

index 9fc24e8b0188535ee948d0b15f9ac8bbd4e405e8..6ab2e1a6d11588d0e03801d0b4ea1ed2fedd50ef 100644 (file)
@@ -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);