Merge pull request #979 from h3poteto/iss-975

refs #975 fix: Check webContents status when receive status in streaming
This commit is contained in:
AkiraFukushima 2019-07-23 00:20:20 +09:00 committed by GitHub
commit e6ed1461a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)