Include torrent/common.h header.

This commit is contained in:
Jari Sundell
2025-09-01 13:46:18 +02:00
committed by GitHub
parent 9d3f6645be
commit e64f9fe324
+4
View File
@@ -2,6 +2,7 @@
#include "http_queue.h"
#include <torrent/common.h>
#include <torrent/net/http_get.h>
#include <torrent/net/http_stack.h>
@@ -17,6 +18,9 @@ HttpQueue::insert(const std::string& url, std::shared_ptr<std::ostream> stream)
itr->add_done_slot([this, itr]() { erase(itr); });
itr->add_failed_slot([this, itr](auto) { erase(itr); });
// TODO: Downloading http torrents doesn't seem to work.
// TODO: Quitting no longer works.
torrent::net_thread::http_stack()->start_get(*itr);
return itr;