Bugfix: "expires" is optional

This commit is contained in:
Luke Dashjr
2012-10-12 16:25:11 +00:00
parent 02b92a240c
commit 78387e9567

View File

@@ -214,7 +214,8 @@ const char *blktmpl_add_jansson(blktemplate_t *tmpl, const json_t *json, time_t
GETSTR(workid, workid);
GETNUM(expires);
if (json_object_get(json, "expires"))
GETNUM(expires);
GETSTR(longpollid, lp.id);
GETSTR(longpolluri, lp.uri);