1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-27 07:46:15 +01:00

refs #24 Remove ipcRenderer listeners when destroyed local timeline component

This commit is contained in:
AkiraFukushima 2018-03-14 12:39:40 +09:00
parent 2163f5018c
commit 13c8b8e638
2 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,7 @@ const TimelineSpace = {
})
},
stopUserStreaming ({ commit }) {
// TODO: remove ipcRenderer listeners
ipcRenderer.send('stop-user-streaming')
},
watchShortcutEvents ({ commit }, account) {

View File

@ -23,6 +23,8 @@ const Local = {
})
},
stopLocalStreaming ({ commit }) {
ipcRenderer.removeAllListeners('error-start-local-streaming')
ipcRenderer.removeAllListeners('update-start-local-streaming')
ipcRenderer.send('stop-local-streaming')
}
}