summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-06-23 15:41:50 +0000
committerJames Bursa <james@netsurf-browser.org>2004-06-23 15:41:50 +0000
commit6720beb2c100ae11855755e6e4d0310b2c6749ac (patch)
tree02327c4d58d675123b957e46d691eda07cf0b1d1 /content/fetchcache.c
parentecc3e59fdc1d6ab066abffbe924b8d8376c477da (diff)
downloadnetsurf-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.c9
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 */