refs #630 Unbind delete event

This commit is contained in:
AkiraFukushima 2019-05-30 21:53:51 +09:00
parent 449fb00a74
commit 1635f7a546
1 changed files with 3 additions and 0 deletions

View File

@ -441,6 +441,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
unbindLocalStreaming: () => { unbindLocalStreaming: () => {
ipcRenderer.removeAllListeners('error-start-local-streaming') ipcRenderer.removeAllListeners('error-start-local-streaming')
ipcRenderer.removeAllListeners('update-start-local-streaming') ipcRenderer.removeAllListeners('update-start-local-streaming')
ipcRenderer.removeAllListeners('delete-start-local-streaming')
}, },
stopLocalStreaming: () => { stopLocalStreaming: () => {
ipcRenderer.send('stop-local-streaming') ipcRenderer.send('stop-local-streaming')
@ -448,6 +449,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
unbindPublicStreaming: () => { unbindPublicStreaming: () => {
ipcRenderer.removeAllListeners('error-start-public-streaming') ipcRenderer.removeAllListeners('error-start-public-streaming')
ipcRenderer.removeAllListeners('update-start-public-streaming') ipcRenderer.removeAllListeners('update-start-public-streaming')
ipcRenderer.removeAllListeners('delete-start-public-streaming')
}, },
stopPublicStreaming: () => { stopPublicStreaming: () => {
ipcRenderer.send('stop-public-streaming') ipcRenderer.send('stop-public-streaming')
@ -455,6 +457,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
unbindDirectMessagesStreaming: () => { unbindDirectMessagesStreaming: () => {
ipcRenderer.removeAllListeners('error-start-directmessages-streaming') ipcRenderer.removeAllListeners('error-start-directmessages-streaming')
ipcRenderer.removeAllListeners('update-start-directmessages-streaming') ipcRenderer.removeAllListeners('update-start-directmessages-streaming')
ipcRenderer.removeAllListeners('delete-start-directmessages-streaming')
}, },
stopDirectMessagesStreaming: () => { stopDirectMessagesStreaming: () => {
ipcRenderer.send('stop-directmessages-streaming') ipcRenderer.send('stop-directmessages-streaming')