Browse Source

don't start torrent for nonexistent users. (we will need something different for #hashtags)

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
3ac54ffbe9
  1. 2
      src/twister.cpp

2
src/twister.cpp

@ -70,7 +70,7 @@ sha1_hash dhtTargetHash(std::string const &username, std::string const &resource @@ -70,7 +70,7 @@ sha1_hash dhtTargetHash(std::string const &username, std::string const &resource
torrent_handle startTorrentUser(std::string const &username)
{
LOCK(cs_twister);
if( !m_userTorrent.count(username) ) {
if( !m_userTorrent.count(username) && usernameExists(username) ) {
sha1_hash ih = dhtTargetHash(username, "tracker", "m");
printf("adding torrent for [%s,tracker]\n", username.c_str());

Loading…
Cancel
Save