Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions public/modules/chainManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,16 +377,10 @@ class ChainManager {
status: "stopping"
});

// Kill both processes
if (process.platform === 'darwin') {
const killBitWindow = spawn('killall', ['bitwindow']);
const killBitWindowd = spawn('killall', ['bitwindowd']);

// Wait for both kill commands to complete
await Promise.all([
new Promise(resolve => killBitWindow.on('exit', resolve)),
new Promise(resolve => killBitWindowd.on('exit', resolve))
]);
const killBitWindow = spawn('killall', ['BitWindow']);

await killBitWindow.on('exit', () => console.log(`BitWindow killed`));

// Let the process checker detect the stop and update status
await new Promise(resolve => {
Expand Down