From: Bastian Dehn Date: Mon, 1 Apr 2024 07:55:07 +0000 (+0200) Subject: do not wait for status when more images available X-Git-Tag: v1.0.0^2~34 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6fe8901ebf97f056f42012a6b8ce7c5a0a588513;p=sane-kds-s2000w-net.git do not wait for status when more images available --- diff --git a/src/kds_s2000w_handler.c b/src/kds_s2000w_handler.c index 09c0ada..4fdb0b5 100644 --- a/src/kds_s2000w_handler.c +++ b/src/kds_s2000w_handler.c @@ -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();