Commit 4b2d13f8 authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Fix criticial when convo email waiting for remote load is cancelled

parent 841df5d0
......@@ -323,8 +323,7 @@ public class ConversationEmail : Gtk.Box, Geary.BaseInterface {
/** Determines if all message's web views have finished loading. */
private Geary.Nonblocking.Spinlock message_bodies_loaded_lock =
new Geary.Nonblocking.Spinlock();
private Geary.Nonblocking.Spinlock message_bodies_loaded_lock;
// Message view with selected text, if any
private ConversationMessage? body_selection_message = null;
......@@ -453,6 +452,8 @@ public class ConversationEmail : Gtk.Box, Geary.BaseInterface {
this.avatar_store = avatar_store;
this.config = config;
this.load_cancellable = load_cancellable;
this.message_bodies_loaded_lock =
new Geary.Nonblocking.Spinlock(load_cancellable);
if (is_sent) {
get_style_context().add_class(SENT_CLASS);
......
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