summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
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 */