Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 4587d48

Browse files
Safely shutdown btcd with SIGINT.
1 parent 47ec677 commit 4587d48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/electron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ app.on('activate', () => {
196196

197197
app.on('quit', () => {
198198
lndProcess && lndProcess.kill('SIGINT');
199-
btcdProcess && btcdProcess.kill();
199+
btcdProcess && btcdProcess.kill('SIGINT');
200200
});
201201

202202
app.setAsDefaultProtocolClient(PREFIX_NAME);

test/integration/action/action-integration.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('Action Integration Tests', function() {
171171
await Promise.all([grpc1.closeLnd(), grpc2.closeLnd()]);
172172
lndProcess1.kill('SIGINT');
173173
lndProcess2.kill('SIGINT');
174-
btcdProcess.kill();
174+
btcdProcess.kill('SIGINT');
175175
});
176176

177177
describe('Generate seed and unlock wallet', () => {
@@ -223,7 +223,7 @@ describe('Action Integration Tests', function() {
223223
});
224224

225225
it('should fund wallet for node1', async () => {
226-
btcdProcess.kill();
226+
btcdProcess.kill('SIGINT');
227227
btcdArgs.miningAddress = store1.walletAddress;
228228
btcdProcess = await startBtcdProcess(btcdArgs);
229229
await nap(NAP_TIME);

0 commit comments

Comments
 (0)