summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-04 18:18:13 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-04 18:18:13 +0200
commitb2fe70f34ddcec7550630efd5cd9f8ed9c7bada8 (patch)
tree8bb3a861dd93f3e7052d6d12d6a0b98528c7399d /src/scanner.vala
parent92a79aacbf96307f4d31f0034f5058415cc34c5c (diff)
parentfeffc9fa14d9edbd4cd924de55020c311607a8ff (diff)
Update upstream source from tag 'upstream/3.30.0'
Update to upstream version '3.30.0' with Debian dir b4810f15e03280de0ce8db7bb4647da6a4db4948
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)
{