refs #975 fix: Check webContents status when receive status in streaming
This commit is contained in:
parent
d1b4dbd8ed
commit
d1cf670379
|
@ -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