From 9f575c590b3c304ab02707ee3378bd2e4f4c9094 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 30 Mar 2010 21:36:39 +0000 Subject: 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 --- content/hlcache.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'content/hlcache.c') 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; -- cgit v1.2.3