diff --git a/src/lambda-wrapper.js b/src/lambda-wrapper.js index c6e8e7e..677306d 100644 --- a/src/lambda-wrapper.js +++ b/src/lambda-wrapper.js @@ -3,6 +3,8 @@ const { Request } = require('./request'); exports.use = (...handlers) => { return (event, context, callback) => { + context.callbackWaitsForEmptyEventLoop = false; + const request = new Request(event); const response = new Response(request, callback); request.res = response;