Browse Source

Delete the subproxy entry in the share after sending it to the proxy send thread

master
Con Kolivas 10 years ago
parent
commit
31a5e3d5ce
  1. 2
      src/generator.c

2
src/generator.c

@ -1281,7 +1281,6 @@ static void submit_share(gdata_t *gdata, json_t *val)
return json_decref(val);
}
json_get_int(&subid, val, "subproxy");
json_object_del(val, "subproxy");
proxi = subproxy_by_id(proxy, subid);
if (unlikely(!proxi)) {
LOGWARNING("Failed to find subproxy %d to send share to", subid);
@ -1390,6 +1389,7 @@ static void *proxy_send(void *arg)
continue;
json_get_int(&subid, msg->json_msg, "subproxy");
json_object_del(msg->json_msg, "subproxy");
json_uintcpy(&id, msg->json_msg, "jobid");
mutex_lock(&proxy->notify_lock);

Loading…
Cancel
Save