summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2013-05-13 08:57:50 +0100
committerAlessio Treglia <alessio@debian.org>2013-05-13 08:57:50 +0100
commit695f537db79b0921621b54998ae46f331fff9105 (patch)
treec848ed3ad33d66dd6d54172eff6075ab8a7ca87e /src/scanner.vala
parentb99db4e5834bb8668c249bb7ce30af9a4d23527e (diff)
Imported Upstream version 3.6.1upstream/3.6.1
Diffstat (limited to 'src/scanner.vala')
-rw-r--r--src/scanner.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scanner.vala b/src/scanner.vala
index 03f1e24..722f308 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -890,7 +890,7 @@ public class Scanner
break;
case ScanType.ADF_FRONT:
if (!set_constrained_string_option (handle, option, index, adf_front_sources, null))
- if (!!set_constrained_string_option (handle, option, index, adf_sources, null))
+ if (!set_constrained_string_option (handle, option, index, adf_sources, null))
warning ("Unable to set front ADF source, please file a bug");
break;
case ScanType.ADF_BACK:
@@ -1113,6 +1113,9 @@ public class Scanner
private void do_complete_document ()
{
+ Sane.cancel (handle);
+ debug ("sane_cancel ()");
+
job_queue.remove_link (job_queue);
state = ScanState.IDLE;
@@ -1226,9 +1229,6 @@ public class Scanner
return;
}
- Sane.cancel (handle);
- debug ("sane_cancel ()");
-
do_complete_document ();
}