From 1cd92d6d50f0a537b09fda344b53f44ce6c7db68 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 19 Jul 2011 20:23:59 +0000 Subject: Fix race when stopping an HTML content mid-load svn path=/trunk/netsurf/; revision=12611 --- content/content.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index c3f8d7855..ed5202009 100644 --- a/content/content.c +++ b/content/content.c @@ -1112,10 +1112,8 @@ nserror content_abort(struct content *c) { LOG(("Aborting %p", c)); - if (c->status == CONTENT_STATUS_READY) { - if (c->handler->stop != NULL) - c->handler->stop(c); - } + if (c->handler->stop != NULL) + c->handler->stop(c); /* And for now, abort our llcache object */ return llcache_handle_abort(c->llcache); -- cgit v1.2.3