Log successful attempts to open an external player

This commit is contained in:
Adam Gotlib
2016-10-11 11:42:04 +02:00
committed by Dan Flettre
parent de2db211cc
commit d8904aaf6e
4 changed files with 14 additions and 8 deletions

View File

@@ -223,6 +223,8 @@ module.exports = class PlaybackController {
// Starts WebTorrent server for media streaming
startServer (torrentSummary) {
const state = this.state
if (torrentSummary.status === 'paused') {
dispatch('startTorrentingSummary', torrentSummary.torrentKey)
ipcRenderer.once('wt-ready-' + torrentSummary.infoHash,
@@ -233,7 +235,7 @@ module.exports = class PlaybackController {
function onTorrentReady () {
ipcRenderer.send('wt-start-server', torrentSummary.infoHash)
ipcRenderer.once('wt-server-running', () => state.playing.isReady = true)
ipcRenderer.once('wt-server-running', () => { state.playing.isReady = true })
}
}