Also stop SMTP when GC vacuuming
This commit is contained in:
parent
7dfe2971c6
commit
8d9c9ea943
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ private class Geary.ImapDB.Database : Geary.Db.VersionedDatabase {
|
|||
if (account != null) {
|
||||
this.want_background_vacuum = false;
|
||||
yield account.imap.stop(gc_cancellable);
|
||||
yield account.smtp.stop(gc_cancellable);
|
||||
|
||||
if (!vacuum_monitor.is_in_progress)
|
||||
vacuum_monitor.notify_start();
|
||||
|
|
@ -145,6 +146,7 @@ private class Geary.ImapDB.Database : Geary.Db.VersionedDatabase {
|
|||
}
|
||||
|
||||
yield account.imap.start(gc_cancellable);
|
||||
yield account.smtp.start(gc_cancellable);
|
||||
} else {
|
||||
// Flag a vacuum to run later when we've been idle in the background
|
||||
debug("Flagging desire to GC vacuum");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue