mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
Fixed corrupted stack in curl stack due to wrong argument type.
This commit is contained in:
@@ -233,10 +233,10 @@ CurlStack::global_cleanup() {
|
|||||||
// TODO: Is this function supposed to set a per-handle timeout, or is
|
// TODO: Is this function supposed to set a per-handle timeout, or is
|
||||||
// it the shortest timeout amongst all handles?
|
// it the shortest timeout amongst all handles?
|
||||||
int
|
int
|
||||||
CurlStack::set_timeout([[maybe_unused]] void* handle, std::chrono::microseconds timeout, void* userp) {
|
CurlStack::set_timeout(void*, long timeout_ms, void* userp) {
|
||||||
CurlStack* stack = (CurlStack*)userp;
|
CurlStack* stack = (CurlStack*)userp;
|
||||||
|
|
||||||
torrent::this_thread::scheduler()->update_wait_for_ceil_seconds(&stack->m_task_timeout, timeout);
|
torrent::this_thread::scheduler()->update_wait_for_ceil_seconds(&stack->m_task_timeout, std::chrono::milliseconds(timeout_ms));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public:
|
|||||||
|
|
||||||
void receive_action(CurlSocket* socket, int type);
|
void receive_action(CurlSocket* socket, int type);
|
||||||
|
|
||||||
static int set_timeout(void* handle, std::chrono::microseconds timeout, void* userp);
|
static int set_timeout(void*, long timeout_ms, void* userp);
|
||||||
|
|
||||||
void transfer_done(void* handle, const char* msg);
|
void transfer_done(void* handle, const char* msg);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user