Converted curl/http to be thread-safe.

This commit is contained in:
Jari Sundell
2025-06-11 17:04:40 +02:00
committed by GitHub
parent a51f367671
commit 41589f06c2
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ WindowHttpQueue::receive_erase(torrent::net::HttpGet http_get) {
if (itr == m_container.end())
throw std::logic_error("WindowHttpQueue::receive_erase(...) tried to remove an object we don't have");
itr->m_http = nullptr;
itr->m_http = torrent::net::HttpGet();
itr->m_timer = torrent::this_thread::cached_time() + 4s;
mark_dirty();