summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-03-30 21:36:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-03-30 21:36:39 +0000
commit9f575c590b3c304ab02707ee3378bd2e4f4c9094 (patch)
treebb33f6c91c4ad3a5e74ff8fa9aee06454bec0658 /content/hlcache.c
parent57e7a172e1b34a03cd62eb6c8537ba52a1c2a7b4 (diff)
downloadnetsurf-9f575c590b3c304ab02707ee3378bd2e4f4c9094.tar.gz
netsurf-9f575c590b3c304ab02707ee3378bd2e4f4c9094.tar.bz2
Do not abort fetch on receipt of FETCH_ERROR: the fetch has already been destroyed.
Implement LLCACHE_EVENT_ERROR case of hlcache_llcache_callback(). svn path=/trunk/netsurf/; revision=10218
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index d18a76b6c..3a55dbeb4 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -175,7 +175,14 @@ nserror hlcache_llcache_callback(llcache_handle *handle,
/* should never happen: the handler must be changed */
break;
case LLCACHE_EVENT_ERROR:
- /** \todo handle errors */
+ if (ctx->handle->cb != NULL) {
+ hlcache_event hlevent;
+
+ hlevent.type = CONTENT_MSG_ERROR;
+ hlevent.data.error = event->data.msg;
+
+ ctx->handle->cb(ctx->handle, &hlevent, ctx->handle->pw);
+ }
break;
case LLCACHE_EVENT_PROGRESS:
break;