simplify deleteTorrent()
This commit is contained in:
@@ -255,13 +255,7 @@ function openPlayer (torrent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteTorrent (torrent) {
|
function deleteTorrent (torrent) {
|
||||||
console.log('Deleting %o', torrent)
|
torrent.destroy(update)
|
||||||
torrent.isDeleting = true
|
|
||||||
update()
|
|
||||||
state.view.client.remove(torrent.infoHash, function () {
|
|
||||||
console.log('Deleted torrent ' + torrent.infoHash)
|
|
||||||
update()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function openChromecast (torrent) {
|
function openChromecast (torrent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user