Merge pull request #979 from h3poteto/iss-975
refs #975 fix: Check webContents status when receive status in streaming
This commit is contained in:
commit
e6ed1461a9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue