HTML content handler: Ensure script fetch hlcache callback handles errorcode.

This commit is contained in:
Michael Drake 2017-08-28 10:55:03 +01:00
parent a30ae27e5c
commit 830d7ec6b6

View File

@ -173,6 +173,7 @@ convert_script_async_cb(hlcache_handle *script,
case CONTENT_MSG_ERROR:
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
case CONTENT_MSG_ERRORCODE:
hlcache_handle_release(script);
s->data.handle = NULL;
parent->base.active--;
@ -226,6 +227,7 @@ convert_script_defer_cb(hlcache_handle *script,
case CONTENT_MSG_ERROR:
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
case CONTENT_MSG_ERRORCODE:
hlcache_handle_release(script);
s->data.handle = NULL;
parent->base.active--;
@ -298,6 +300,7 @@ convert_script_sync_cb(hlcache_handle *script,
case CONTENT_MSG_ERROR:
LOG("script %s failed: %s", nsurl_access(hlcache_handle_get_url(script)), event->data.error);
case CONTENT_MSG_ERRORCODE:
hlcache_handle_release(script);
s->data.handle = NULL;