diff --git a/main/index.js b/main/index.js index 9ba00550..40724bda 100644 --- a/main/index.js +++ b/main/index.js @@ -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) {