]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
do not wait for status when more images available
authorBastian Dehn <hhaalo@arcor.de>
Mon, 1 Apr 2024 07:55:07 +0000 (09:55 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 1 Apr 2024 07:55:07 +0000 (09:55 +0200)
src/kds_s2000w_handler.c

index 09c0ada8d9105c88311d3e63f565c9a85e79dc48..4fdb0b5dc62e69502e4737aa922068dcbe6bdd2c 100644 (file)
@@ -143,6 +143,9 @@ void _get_current_scan_status(handler* h)
        json_object* status_value_obj = NULL;
        response* resp = NULL;
 
+       if (h->wait && h->current_scan_status->available_images > 1)
+               return;
+
        while(h->wait);
        wait_a_second(&h->wait);
        resp = kds_s2000w_client_response_init();