Use shared_ptr for CurlGet stream and improved thread-safety.

This commit is contained in:
Jari Sundell
2025-06-17 16:15:40 +02:00
committed by GitHub
parent 12347843a9
commit 64cb3d11a0
4 changed files with 13 additions and 12 deletions
+3 -3
View File
@@ -62,9 +62,9 @@ private:
void initialize_rtorrent(Download* download, torrent::Object* rtorrent);
Manager* m_manager;
std::iostream* m_stream{};
torrent::Object* m_object{};
Manager* m_manager;
std::shared_ptr<std::iostream> m_stream;
torrent::Object* m_object{};
bool m_commited{};
bool m_loaded{};