Don't just straight to LIST_END when there's an end time in the future

This commit is contained in:
Jeremy Lakeman 2014-07-14 15:28:30 +09:30
parent eaf069e1c3
commit d275a34802

View File

@ -386,7 +386,7 @@ static int restful_meshms_messagelist_json_content_chunk(struct http_request *hr
}
strbuf_puts(b, "],\n\"rows\":[");
if (!strbuf_overrun(b))
r->u.msglist.phase = r->u.msglist.finished ? LIST_END : LIST_ROWS;
r->u.msglist.phase = LIST_ROWS;
return 1;
case LIST_ROWS:
{