Don't delay scraping for newly added torrents

This commit is contained in:
stickz
2021-12-05 12:49:45 -05:00
committed by Jari Sundell
parent c86f0d0333
commit 2e1a499942
3 changed files with 12 additions and 4 deletions
+2
View File
@@ -135,6 +135,7 @@ load_session_torrents() {
// Replace with session torrent flag.
f->set_session(true);
f->set_init_load(true);
f->slot_finished(std::bind(&rak::call_delete_func<core::DownloadFactory>, f));
f->load(entries.path() + first->d_name);
f->commit();
@@ -149,6 +150,7 @@ load_arg_torrents(char** first, char** last) {
// Replace with session torrent flag.
f->set_start(true);
f->set_init_load(true);
f->slot_finished(std::bind(&rak::call_delete_func<core::DownloadFactory>, f));
f->load(*first);
f->commit();