kds_s2000w_handler_start_scan(h);
}
+ if (h->current_scan_status->downloaded_images > 0
+ && h->current_scan_status->available_images < 1)
+ return SANE_STATUS_NO_DOCS;
+
for (int i = 0; i < 30; i++) {
kds_s2000w_net_handler_get_current_scan_status(h);
break;
}
- if (h->current_scan_status->available_images < 1 && h->image->size == 0) {
+ if (h->current_scan_status->available_images < 1) {
kds_s2000w_handler_recreate_session(h);
return SANE_STATUS_NO_DOCS;
}