mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-02 09:54:29 +00:00
make sure torrent is unpaused if added/followed later on
This commit is contained in:
parent
adc9e82f3a
commit
4c561ceb74
@ -99,16 +99,16 @@ torrent_handle startTorrentUser(std::string const &username, bool following)
|
|||||||
load_file(filename.c_str(), tparams.resume_data);
|
load_file(filename.c_str(), tparams.resume_data);
|
||||||
|
|
||||||
m_userTorrent[username] = ses->add_torrent(tparams);
|
m_userTorrent[username] = ses->add_torrent(tparams);
|
||||||
if( following ) {
|
if( !following ) {
|
||||||
m_userTorrent[username].auto_managed(false);
|
|
||||||
m_userTorrent[username].resume();
|
|
||||||
} else {
|
|
||||||
m_userTorrent[username].auto_managed(true);
|
m_userTorrent[username].auto_managed(true);
|
||||||
}
|
}
|
||||||
m_userTorrent[username].force_dht_announce();
|
m_userTorrent[username].force_dht_announce();
|
||||||
}
|
}
|
||||||
if( following )
|
if( following ) {
|
||||||
m_userTorrent[username].set_following(true);
|
m_userTorrent[username].set_following(true);
|
||||||
|
m_userTorrent[username].auto_managed(false);
|
||||||
|
m_userTorrent[username].resume();
|
||||||
|
}
|
||||||
return m_userTorrent[username];
|
return m_userTorrent[username];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user