[geary/wip/778276-better-flag-updates: 22/25] Bump move commit timeout to something reasonable.



commit 3e6c429c72aea189b2770233b0c250676770460b
Author: Michael James Gratton <mike vee net>
Date:   Tue Nov 28 10:27:08 2017 +1100

    Bump move commit timeout to something reasonable.
    
    Committing earlier makes it much more likely the commit will actually
    happen before e.g. the user closes Geary or puts the computer to sleep,
    but still leaving time for "oh-no" undos.
    
    * src/engine/imap-engine/imap-engine-revokable-move.vala (RevokableMove):
      Drop commit interval from 60s to 5s.

 .../imap-engine/imap-engine-revokable-move.vala    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-revokable-move.vala 
b/src/engine/imap-engine/imap-engine-revokable-move.vala
index a637be0..7a31eba 100644
--- a/src/engine/imap-engine/imap-engine-revokable-move.vala
+++ b/src/engine/imap-engine/imap-engine-revokable-move.vala
@@ -14,7 +14,7 @@
  */
 
 private class Geary.ImapEngine.RevokableMove : Revokable {
-    private const int COMMIT_TIMEOUT_SEC = 60;
+    private const int COMMIT_TIMEOUT_SEC = 5;
     
     private GenericAccount account;
     private MinimalFolder source;


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