Commit 43ecc352 authored by Chris Heywood's avatar Chris Heywood

Minor fix to last commit

parent ae193989
Pipeline #142727 passed with stages
in 24 minutes and 12 seconds
......@@ -103,13 +103,13 @@ private class Geary.ImapEngine.AccountSynchronizer :
}
}
private void old_messages_background_cleanup(GLib.Cancellable cancellable) {
private void old_messages_background_cleanup(GLib.Cancellable? cancellable) {
if (this.account.is_open()) {
SyncDetachMonitor monitor = new SyncDetachMonitor();
send_all(this.account.list_folders(), false, true, monitor);
monitor.initialised = true;
monitor.completed.connect((messages_detached) => {
if (cancellable.is_cancelled())
if (cancellable != null && cancellable.is_cancelled())
return;
// Run GC. Reap is forced if messages were detached. Vacuum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment