Browse Source

don't auto-manage the torrents we follow

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
cb9e637ac6
  1. 6
      src/twister.cpp

6
src/twister.cpp

@ -99,6 +99,12 @@ 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 ) {
m_userTorrent[username].auto_managed(false);
m_userTorrent[username].resume();
} else {
m_userTorrent[username].auto_managed(true);
}
m_userTorrent[username].force_dht_announce(); m_userTorrent[username].force_dht_announce();
} }
if( following ) if( following )

Loading…
Cancel
Save