Cleaned up torrent header files.

This commit is contained in:
Jari Sundell
2026-05-14 12:24:38 +02:00
committed by GitHub
parent 501853cfbc
commit 797a194abc
9 changed files with 26 additions and 8 deletions
+13 -1
View File
@@ -12,7 +12,6 @@
#include <torrent/utils/resume.h>
#include <torrent/object.h>
#include <torrent/connection_manager.h>
#include <torrent/error.h>
#include <torrent/exceptions.h>
#include <torrent/object_stream.h>
#include <torrent/throttle.h>
@@ -65,6 +64,19 @@ Manager::~Manager() {
torrent::Throttle::destroy_throttle(m_throttles["NULL"].first);
}
bool
Manager::is_download_shutdown_completed() {
for (const auto& download : *download_list()) {
if (download->tracker_controller().is_active())
return false;
if (download->tracker_controller().has_active_trackers_not_dht())
return false;
}
return true;
}
void
Manager::set_hashing_view(View* v) {
if (v == nullptr || m_hashingView != nullptr)