From 695f537db79b0921621b54998ae46f331fff9105 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Mon, 13 May 2013 08:57:50 +0100 Subject: Imported Upstream version 3.6.1 --- src/scanner.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scanner.vala') 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 (); } -- cgit v1.2.3