return SANE_STATUS_NO_DOCS;
}
- if (h->current_scan_status->complete_scanned)
+ if (h->current_scan_status->complete_scanned) {
kds_s2000w_handler_stop_scan(h);
+ return SANE_STATUS_GOOD;
+ }
+
+ if (h->current_scan_status->available_images <= 0) {
+ kds_s2000w_handler_recreate_session(h);
+ return SANE_STATUS_GOOD;
+ }
return SANE_STATUS_GOOD;
}
*length = 0;
h->current_metadata->is_last = 1;
h->read_info->readed_lines = 0;
+
return SANE_STATUS_EOF;
}