Skip to content

Commit

Permalink
not always true
Browse files Browse the repository at this point in the history
  • Loading branch information
standielpls committed Oct 30, 2024
1 parent 82a1ac1 commit 6d687d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/tools/create-lambda-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ const createLambdaHandler = (appRawOrPath) => {
// using the callback; just putting it here to be explicit.
// In some cases, the code hangs and never exits because the event loop is not
// empty, so we can override the default behavior and exit after the app is done.
context.callbackWaitsForEmptyEventLoop = !event.skipWaitForAsync || true;
context.callbackWaitsForEmptyEventLoop = true;
if (event.skipWaitForAsync === true) {
context.callbackWaitsForEmptyEventLoop = false;
}

// replace native Promise with bluebird (works better with domains)
if (!event.calledFromCli) {
Expand Down

0 comments on commit 6d687d7

Please sign in to comment.