refs #299 Clean streaming when window-all-close

This commit is contained in:
AkiraFukushima 2018-05-14 09:21:11 +09:00
parent c566d1cbbe
commit c9f8d85926
1 changed files with 12 additions and 0 deletions

View File

@ -237,6 +237,18 @@ app.on('window-all-closed', () => {
userStreaming.stop()
userStreaming = null
}
if (localStreaming !== null) {
localStreaming.stop()
localStreaming = null
}
if (publicStreaming !== null) {
publicStreaming.stop()
publicStreaming = null
}
if (listStreaming !== null) {
listStreaming.stop()
listStreaming = null
}
if (process.platform !== 'darwin') {
app.quit()
}