refs #416 Skip stop streaming if the object is not initialized
This commit is contained in:
parent
8cdfcaa5a1
commit
1c4a06ef92
|
@ -476,8 +476,10 @@ ipcMain.on('start-local-streaming', (event, ac) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('stop-local-streaming', (event, _) => {
|
ipcMain.on('stop-local-streaming', (event, _) => {
|
||||||
localStreaming.stop()
|
if (localStreaming !== null) {
|
||||||
localStreaming = null
|
localStreaming.stop()
|
||||||
|
localStreaming = null
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let publicStreaming = null
|
let publicStreaming = null
|
||||||
|
@ -511,8 +513,10 @@ ipcMain.on('start-public-streaming', (event, ac) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('stop-public-streaming', (event, _) => {
|
ipcMain.on('stop-public-streaming', (event, _) => {
|
||||||
publicStreaming.stop()
|
if (publicStreaming !== null) {
|
||||||
publicStreaming = null
|
publicStreaming.stop()
|
||||||
|
publicStreaming = null
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let listStreaming = null
|
let listStreaming = null
|
||||||
|
@ -583,8 +587,10 @@ ipcMain.on('start-tag-streaming', (event, obj) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcMain.on('stop-tag-streaming', (event, _) => {
|
ipcMain.on('stop-tag-streaming', (event, _) => {
|
||||||
tagStreaming.stop()
|
if (tagStreaming !== null) {
|
||||||
tagStreaming = null
|
tagStreaming.stop()
|
||||||
|
tagStreaming = null
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// sounds
|
// sounds
|
||||||
|
|
Loading…
Reference in New Issue