Fix failed assertion in content_convert when process_data fails.

svn path=/trunk/netsurf/; revision=10425
This commit is contained in:
John Mark Bell 2010-04-18 11:04:13 +00:00
parent f373777dab
commit 3958f3730b

View File

@ -645,8 +645,12 @@ void content_convert(struct content *c)
{
assert(c);
assert(c->type < HANDLER_MAP_COUNT);
assert(c->status == CONTENT_STATUS_LOADING);
assert(c->status == CONTENT_STATUS_LOADING ||
c->status == CONTENT_STATUS_ERROR);
if (c->status != CONTENT_STATUS_LOADING)
return;
if (c->locked == true)
return;