Skip to content

Commit

Permalink
Merge pull request #700 from dherault/requests_bugfix
Browse files Browse the repository at this point in the history
Fix requests bug
  • Loading branch information
dherault committed Jun 8, 2019
2 parents 17609f7 + 9842bf2 commit e67a3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -708,7 +708,7 @@ class Offline {
debugLog('_____ HANDLER RESOLVED _____');

// User should not call context.done twice
if (this.requests[requestId].done) {
if (!this.requests[requestId] || this.requests[requestId].done) {
this.printBlankLine();
const warning = fromPromise
? `Warning: handler '${funName}' returned a promise and also uses a callback!\nThis is problematic and might cause issues in your lambda.`
Expand Down

0 comments on commit e67a3ca

Please sign in to comment.