From 5ce37c46d44f2e094d066441da55de12e002250a Mon Sep 17 00:00:00 2001 From: patr0nus Date: Tue, 16 Nov 2021 12:08:54 +0800 Subject: [PATCH] Set default exit code to 0 --- libnode/patch/node/src/node_embedding_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnode/patch/node/src/node_embedding_api.cc b/libnode/patch/node/src/node_embedding_api.cc index a23d3de..6e73705 100644 --- a/libnode/patch/node/src/node_embedding_api.cc +++ b/libnode/patch/node/src/node_embedding_api.cc @@ -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; }