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

Commit 47ec677

Browse files
Safely shutdown lnd with SIGINT.
1 parent 6bb99c7 commit 47ec677

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
@@ -195,7 +195,7 @@ app.on('activate', () => {
195195
});
196196

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ describe('Action Integration Tests', function() {
169169

170170
after(async () => {
171171
await Promise.all([grpc1.closeLnd(), grpc2.closeLnd()]);
172-
lndProcess1.kill();
173-
lndProcess2.kill();
172+
lndProcess1.kill('SIGINT');
173+
lndProcess2.kill('SIGINT');
174174
btcdProcess.kill();
175175
});
176176

0 commit comments

Comments
 (0)