Browse Source

Don't disable proxies with scrambled json.

master
Con Kolivas 8 years ago
parent
commit
e0d0a42595
  1. 3
      src/generator.c

3
src/generator.c

@ -1432,7 +1432,7 @@ static bool auth_stratum(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxi)
LOGNOTICE("Proxy %d:%d %s failed to get a json result in auth_stratum, got: %s", LOGNOTICE("Proxy %d:%d %s failed to get a json result in auth_stratum, got: %s",
proxi->id, proxi->subid, proxi->url, buf); proxi->id, proxi->subid, proxi->url, buf);
} }
goto out; goto out_noconn;
} }
if (err_val && !json_is_null(err_val)) { if (err_val && !json_is_null(err_val)) {
@ -1453,7 +1453,6 @@ static bool auth_stratum(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxi)
} }
LOGINFO("Proxy %d:%d %s auth success in auth_stratum", proxi->id, proxi->subid, proxi->url); LOGINFO("Proxy %d:%d %s auth success in auth_stratum", proxi->id, proxi->subid, proxi->url);
out: out:
if (val)
json_decref(val); json_decref(val);
if (ret) { if (ret) {
/* Now parse any cached responses so there are none in the /* Now parse any cached responses so there are none in the

Loading…
Cancel
Save