summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c
index 0c55bd805..b51510d3d 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1563,7 +1563,12 @@ void html_object_refresh(void *p)
{
struct content *c = (struct content *)p;
- assert(c->type == CONTENT_HTML && c->refresh);
+ assert(c->type == CONTENT_HTML);
+
+ /* Ignore if refresh URL has gone
+ * (may happen if fetch errored) */
+ if (!c->refresh)
+ return;
c->fresh = false;