Skip to content

Commit

Permalink
Fix error while exiting Nightwatch using Ctrl+C. (#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored Feb 2, 2024
1 parent ae779ac commit 42dbafc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class BaseService {

process.on('exit', this.exitListener);

process.on('SIGINT', (code) => {
process.on('SIGINT', () => {
this.stop().then(_ => {
process.exit(code);
process.exit(0);
});
});
}
Expand Down

0 comments on commit 42dbafc

Please sign in to comment.