diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-23 15:41:50 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-23 15:41:50 +0000 |
commit | 6720beb2c100ae11855755e6e4d0310b2c6749ac (patch) | |
tree | 02327c4d58d675123b957e46d691eda07cf0b1d1 /content/fetchcache.c | |
parent | ecc3e59fdc1d6ab066abffbe924b8d8376c477da (diff) | |
download | netsurf-6720beb2c100ae11855755e6e4d0310b2c6749ac.tar.gz netsurf-6720beb2c100ae11855755e6e4d0310b2c6749ac.tar.bz2 |
[project @ 2004-06-23 15:41:50 by bursa]
Fix fetchcache_go() treatment of contents which the initiator loses interest in (eg. wrong content-type).
svn path=/import/netsurf/; revision=997
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c index fb671ea50..8d3272c94 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -172,12 +172,15 @@ void fetchcache_go(struct content *content, char *referer, } else if (content->status == CONTENT_STATUS_READY) { callback(CONTENT_MSG_LOADING, content, p1, p2, msg_data); - callback(CONTENT_MSG_READY, content, p1, p2, msg_data); + if (content_find_user(content, callback, p1, p2)) + callback(CONTENT_MSG_READY, content, p1, p2, msg_data); } else if (content->status == CONTENT_STATUS_DONE) { callback(CONTENT_MSG_LOADING, content, p1, p2, msg_data); - callback(CONTENT_MSG_READY, content, p1, p2, msg_data); - callback(CONTENT_MSG_DONE, content, p1, p2, msg_data); + if (content_find_user(content, callback, p1, p2)) + callback(CONTENT_MSG_READY, content, p1, p2, msg_data); + if (content_find_user(content, callback, p1, p2)) + callback(CONTENT_MSG_DONE, content, p1, p2, msg_data); } else if (content->status == CONTENT_STATUS_ERROR) { /* shouldn't usually occur */ |