diff options
author | Milan Crha <mcrha@redhat.com> | 2009-02-11 18:02:02 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-02-11 18:02:02 +0800 |
commit | fe69a20c44e58908354a130a406b2facd18454ab (patch) | |
tree | 5658a4c148a5361af358072c41e463501b974d89 /mail/em-format-html.c | |
parent | ec49abcb7ce88f0549fa54a66d4523e5a355b942 (diff) | |
download | gsoc2013-evolution-fe69a20c44e58908354a130a406b2facd18454ab.tar.gz gsoc2013-evolution-fe69a20c44e58908354a130a406b2facd18454ab.tar.zst gsoc2013-evolution-fe69a20c44e58908354a130a406b2facd18454ab.zip |
** Fix for bug #569700
2009-02-11 Milan Crha <mcrha@redhat.com>
** Fix for bug #569700
* em-format-html.c: (emfh_gethttp):
Stop reading from a network when operation was canceled.
svn path=/trunk/; revision=37246
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 21cbcf0e92..23926f8ed6 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -523,6 +523,10 @@ static void emfh_gethttp(struct _EMFormatHTMLJob *job, int cancelled) costream = camel_data_cache_add(emfh_http_cache, EMFH_HTTP_CACHE_PATH, job->u.uri, NULL); do { + if (camel_operation_cancel_check (NULL)) { + n = -1; + break; + } /* FIXME: progress reporting in percentage, can we get the length always? do we care? */ n = camel_stream_read(instream, buffer, sizeof (buffer)); if (n > 0) { |