Badly copy&pasted my original fix, instead of noticing that Stephan's fix
was slightly different. Probably shouldn't have made actual difference
other than for performance.
if (!sending && req->payload_input != NULL)
i_stream_unref(&req->payload_input);
}
- if (req->client->ioloop != NULL)
+ if (req->payload_wait && req->client->ioloop != NULL)
io_loop_stop(req->client->ioloop);
}
if (req->queue != NULL)
http_client_queue_drop_request(req->queue, req);
- if (req->client->ioloop != NULL)
+ if (req->payload_wait && req->client->ioloop != NULL)
io_loop_stop(req->client->ioloop);
http_client_request_unref(_req);
}