|
@@ -1076,24 +1076,13 @@ static inline gearman_return_t _client_run_tasks(gearman_client_st *client)
|
|
|
|
|
|
/* Packet cleanup copied from "Clean up the packet" below, and must
|
|
|
remain in sync with its reference. */
|
|
|
- gearman_packet_free(&(client->con->packet));
|
|
|
+ gearman_packet_free(&(client->con->_packet));
|
|
|
client->con->options.packet_in_use= false;
|
|
|
|
|
|
- /* This step copied from _client_run_tasks(): */
|
|
|
- /* Increment this since the job submission failed. */
|
|
|
+ /* This step copied from _client_run_tasks() above: */
|
|
|
+ /* Increment this value because new job created then failed. */
|
|
|
client->con->created_id++;
|
|
|
|
|
|
- /* Task cleanup copied from bottom of _client_run_tasks(), and must
|
|
|
- remain in sync with its reference. */
|
|
|
- /* Actually, caller already tries to gearman_task_free(...) */
|
|
|
- /*
|
|
|
- client->running_tasks--;
|
|
|
- client->task->state= GEARMAN_TASK_STATE_FINISHED;
|
|
|
-
|
|
|
- if (client->options.free_tasks)
|
|
|
- gearman_task_free(client->task);
|
|
|
- */
|
|
|
-
|
|
|
return GEARMAN_SERVER_ERROR;
|
|
|
}
|
|
|
else if (strncmp(client->task->job_handle,
|