simplify deleteTorrent()

This commit is contained in:
Feross Aboukhadijeh
2016-03-04 01:26:04 -08:00
parent b8996468fb
commit da3500d392

View File

@@ -255,13 +255,7 @@ function openPlayer (torrent) {
}
function deleteTorrent (torrent) {
console.log('Deleting %o', torrent)
torrent.isDeleting = true
update()
state.view.client.remove(torrent.infoHash, function () {
console.log('Deleted torrent ' + torrent.infoHash)
update()
})
torrent.destroy(update)
}
function openChromecast (torrent) {