aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-subscribe-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-subscribe-editor.c')
-rw-r--r--mail/em-subscribe-editor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-subscribe-editor.c b/mail/em-subscribe-editor.c
index 0f63800efa..fc52d1e80d 100644
--- a/mail/em-subscribe-editor.c
+++ b/mail/em-subscribe-editor.c
@@ -684,8 +684,10 @@ sub_editor_refresh(GtkWidget *w, EMSubscribeEditor *se)
sub->seq++;
/* drop any currently pending */
- if (sub->pending_id != -1)
+ if (sub->pending_id != -1) {
mail_msg_cancel(sub->pending_id);
+ mail_msg_wait(sub->pending_id);
+ }
gtk_tree_store_clear((GtkTreeStore *)gtk_tree_view_get_model(sub->tree));