aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-sync-stream.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-06-24 16:01:04 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-06-24 16:01:04 +0800
commit9955814a761a6365a57b66284f6c5682192f17cd (patch)
tree48360b8c930714b3a74a95cc1518c9ea947cccf6 /mail/em-sync-stream.c
parent94c938bb6d9857f2887d731f73cf8653df58bc80 (diff)
downloadgsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar.gz
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar.bz2
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar.lz
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar.xz
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.tar.zst
gsoc2013-evolution-9955814a761a6365a57b66284f6c5682192f17cd.zip
** Fix for bug #537275
2008-06-24 Milan Crha <mcrha@redhat.com> ** Fix for bug #537275 * em-html-stream.c: (emhs_cleanup): Close GtkHTMLStream on cancel. * em-html-stream.c: (emhs_gtkhtml_destroy): Set the cancel. * em-sync-stream.c: (emss_process_message): Do not pass data to the child structure if we were canceled. svn path=/trunk/; revision=35680
Diffstat (limited to 'mail/em-sync-stream.c')
-rw-r--r--mail/em-sync-stream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-sync-stream.c b/mail/em-sync-stream.c
index e8aad7f31c..82c8b20aeb 100644
--- a/mail/em-sync-stream.c
+++ b/mail/em-sync-stream.c
@@ -59,6 +59,13 @@ emss_process_message (struct _write_msg *msg)
{
struct _EMSyncStream *emss = msg->emss;
+ if (emss->cancel) {
+ /* Do not pass data to the child if we are canceled. */
+ e_flag_set (msg->done);
+
+ return FALSE;
+ }
+
/* Force out any pending data before doing anything else. */
if (emss->buffer != NULL && emss->buffer->len > 0) {
EMSS_CLASS (emss)->sync_write (