From eee040a8680bf8b8000c4e715ce274f9a614edbd Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 17 Jul 2019 10:50:51 +0200 Subject: [PATCH] Fix 'req is undefined' --- www/common/outer/mailbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/mailbox.js b/www/common/outer/mailbox.js index e5397f7bc..081f64cc3 100644 --- a/www/common/outer/mailbox.js +++ b/www/common/outer/mailbox.js @@ -342,10 +342,10 @@ proxy.mailboxes = { var txid = parsed[1]; var req = ctx.req[txid]; + if (!req) { return; } var type = parsed[0]; var _msg = parsed[2]; var box = req.box; - if (!req) { return; } if (type === 'HISTORY_RANGE') { if (!Array.isArray(_msg)) { return; }