From 19b6e719b52962642e9d1f2fa8bb638dc1bd26ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A9rault?= Date: Sat, 8 Jun 2019 14:45:38 +0200 Subject: [PATCH] Fix timeout bug for lambda integration --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a81fe4268..da02ec25e 100755 --- a/src/index.js +++ b/src/index.js @@ -1183,7 +1183,7 @@ class Offline { } _clearTimeout(requestId) { - const { timeout } = this.requests[requestId]; + const { timeout } = this.requests[requestId] || {}; clearTimeout(timeout); }