Also stop SMTP when GC vacuuming

This commit is contained in:
Chris Heywood 2020-01-09 13:38:33 +01:00
parent 7dfe2971c6
commit 8d9c9ea943

View file

@ -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");