From d1cf6703796ccd04a2f2987c02168af8b011616f Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Tue, 23 Jul 2019 00:13:19 +0900
Subject: [PATCH] refs #975 fix: Check webContents status when receive status
in streaming
---
src/main/index.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/index.ts b/src/main/index.ts
index d4a3f663..bf576390 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -445,7 +445,9 @@ ipcMain.on('start-all-user-streamings', (event: Event, accounts: Array {
- 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) => {
const preferences = new Preferences(preferencesDBPath)