Merge pull request #58 from andrerfneves/bugfix/ipc-on-close-crash
Bugfix/ipc on close crash
This commit is contained in:
commit
2deae2b48c
|
@ -87,7 +87,7 @@ const runDaemon: () => Promise<?ChildProcess> = () => new Promise(async (resolve
|
|||
});
|
||||
|
||||
childProcess.stdout.on('data', (data) => {
|
||||
if (mainWindow && mainWindow.webContents) mainWindow.webContents.send('zcashd-log', data.toString());
|
||||
if (!mainWindow.isDestroyed()) mainWindow.webContents.send('zcashd-log', data.toString());
|
||||
if (!resolved) {
|
||||
resolve(childProcess);
|
||||
resolved = true;
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
declare module 'process-exists' {
|
||||
declare module.exports: string => Promise<boolean>;
|
||||
}
|
Loading…
Reference in New Issue