[geary/wip/765516-gtk-widget-conversation-viewer: 171/207] Fix possible crit loading an avatar for a cancelled conversation load.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/765516-gtk-widget-conversation-viewer: 171/207] Fix possible crit loading an avatar for a cancelled conversation load.
- Date: Tue, 4 Oct 2016 00:10:47 +0000 (UTC)
commit 05b320bae11a9fa035278100df7c94eb421e1ae0
Author: Michael James Gratton <mike vee net>
Date: Thu Sep 8 12:11:10 2016 +1000
Fix possible crit loading an avatar for a cancelled conversation load.
.../conversation-viewer/conversation-message.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-message.vala
b/src/client/conversation-viewer/conversation-message.vala
index eb598ee..426ac73 100644
--- a/src/client/conversation-viewer/conversation-message.vala
+++ b/src/client/conversation-viewer/conversation-message.vala
@@ -367,7 +367,8 @@ public class ConversationMessage : Gtk.Grid {
)
);
session.queue_message(message, (session, message) => {
- if (message.status_code == 200) {
+ if (message.status_code == 200 &&
+ !load_cancellable.is_cancelled()) {
set_avatar(message.response_body.data);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]