From 8d9c9ea943491a838ee7bc17820d04c5441ba339 Mon Sep 17 00:00:00 2001 From: Chris Heywood <15127-creywood@users.noreply.gitlab.gnome.org> Date: Thu, 9 Jan 2020 13:38:33 +0100 Subject: [PATCH] Also stop SMTP when GC vacuuming --- src/engine/imap-db/imap-db-database.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/imap-db/imap-db-database.vala b/src/engine/imap-db/imap-db-database.vala index 5e0fc0ab..d490d6c6 100644 --- a/src/engine/imap-db/imap-db-database.vala +++ b/src/engine/imap-db/imap-db-database.vala @@ -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");