(trunk web) prevent extra pointless requests
This commit is contained in:
parent
77f282f958
commit
d90c3f04b4
|
@ -1110,7 +1110,8 @@ Transmission.prototype =
|
||||||
new_torrent_ids.push(this.id);
|
new_torrent_ids.push(this.id);
|
||||||
} );
|
} );
|
||||||
|
|
||||||
tr.remote.loadTorrentFiles( refresh_files_for );
|
if(refresh_files_for.length > 0)
|
||||||
|
tr.remote.loadTorrentFiles( refresh_files_for );
|
||||||
|
|
||||||
if(new_torrent_ids.length > 0)
|
if(new_torrent_ids.length > 0)
|
||||||
tr.remote.getInitialDataFor(new_torrent_ids, function(torrents){ tr.addTorrents(torrents) } );
|
tr.remote.getInitialDataFor(new_torrent_ids, function(torrents){ tr.addTorrents(torrents) } );
|
||||||
|
|
Loading…
Reference in New Issue