summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
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 ();
}