summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-04 20:33:17 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-04 20:33:17 +0200
commit46c7d1c8d370e549c23ad8425c2a0ab516f5d787 (patch)
treed2aafe2273d9c6c67d9138f5fb63bd53d125a21d /src/scanner.vala
parent92a79aacbf96307f4d31f0034f5058415cc34c5c (diff)
parente2ede7c4bc7accffd3d1526bf98121654e24bbae (diff)
Merge branch 'feature/upstream' into develop
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)
{