(trunk) #2031: Unable to select torrent by hash

This commit is contained in:
Charles Kerr
2009-05-08 17:24:16 +00:00
parent 827c7829aa
commit 0209b783eb
2 changed files with 17 additions and 2 deletions

View File

@@ -158,6 +158,13 @@ getTorrents( tr_session * session,
if( tor->anyDate >= now - window )
torrents[torrentCount++] = tor;
}
else
{
tr_torrent * tor;
torrents = tr_new0( tr_torrent *, 1 );
if(( tor = tr_torrentFindFromHashString( session, str )))
torrents[torrentCount++] = tor;
}
}
else /* all of them */
{