mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk) #2031: Unable to select torrent by hash
This commit is contained in:
@@ -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 */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user