Fix 'req is undefined'

pull/1/head
yflory 5 years ago
parent 36a57b4007
commit eee040a868

@ -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; }

Loading…
Cancel
Save