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:
parent
2163f5018c
commit
13c8b8e638
@ -92,6 +92,7 @@ const TimelineSpace = {
|
||||
})
|
||||
},
|
||||
stopUserStreaming ({ commit }) {
|
||||
// TODO: remove ipcRenderer listeners
|
||||
ipcRenderer.send('stop-user-streaming')
|
||||
},
|
||||
watchShortcutEvents ({ commit }, account) {
|
||||
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user