summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.vala')
-rw-r--r--src/scanner.vala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scanner.vala b/src/scanner.vala
index cd7c300..58141b8 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -1331,6 +1331,13 @@ public class Scanner
return;
}
+ /* Some ADF scanners only return NO_DOCS after a read */
+ if (status == Sane.Status.NO_DOCS)
+ {
+ do_complete_document ();
+ return;
+ }
+
/* Communication error */
if (status != Sane.Status.GOOD)
{