refs #975 fix: Check webContents status when receive status in streaming

This commit is contained in:
AkiraFukushima 2019-07-23 00:13:19 +09:00
parent d1b4dbd8ed
commit d1cf670379
1 changed files with 3 additions and 1 deletions

View File

@ -445,7 +445,9 @@ ipcMain.on('start-all-user-streamings', (event: Event, accounts: Array<LocalAcco
userStreamings[id] = new StreamingManager(acct, true) userStreamings[id] = new StreamingManager(acct, true)
userStreamings[id]!.startUser( userStreamings[id]!.startUser(
(update: Status) => { (update: Status) => {
event.sender.send(`update-start-all-user-streamings-${id}`, update) if (!event.sender.isDestroyed()) {
event.sender.send(`update-start-all-user-streamings-${id}`, update)
}
}, },
(notification: RemoteNotification) => { (notification: RemoteNotification) => {
const preferences = new Preferences(preferencesDBPath) const preferences = new Preferences(preferencesDBPath)