Skip to content

Commit

Permalink
Set default exit code to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
branchseer committed Nov 16, 2021
1 parent 578acef commit 5ce37c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnode/patch/node/src/node_embedding_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace {
result.exit_code = 1;
}
else {
int evtloop_ret = node::SpinEventLoop(env).FromMaybe(1);
int evtloop_ret = node::SpinEventLoop(env).FromMaybe(0);
if (result.exit_code == 0) {
result.exit_code = evtloop_ret;
}
Expand Down

0 comments on commit 5ce37c4

Please sign in to comment.