[simple-scan/gnome-3-4: 7/25] Always call sane_cancel on the end of a document, this was not being called at the end of an ADF sca



commit 250de3f2f3480bb8854411319bc73f50dbd2367e
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Mar 22 09:33:41 2013 +1300

    Always call sane_cancel on the end of a document, this was not being called at the end of an ADF scan

 src/scanner.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/scanner.vala b/src/scanner.vala
index 3c2e6b7..1ea6801 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -1095,6 +1095,9 @@ public class Scanner
 
     private void do_complete_document ()
     {
+        Sane.cancel (handle);
+        debug ("sane_cancel ()");
+
         job_queue.remove_link (job_queue);
 
         state = ScanState.IDLE;
@@ -1208,9 +1211,6 @@ public class Scanner
             return;
         }
 
-        Sane.cancel (handle);
-        debug ("sane_cancel ()");
-
         do_complete_document ();
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]