Fix debug log exception on invalid session

This commit is contained in:
Zaid Abdulla committed 2021-01-31 14:04:13 -08:00
1 parent 995a232387
commit 405f9d6a0f
1 file changed
+4 -2
+4 -2
View File
@@ -1570,8 +1570,10 @@ async function listenerAsync(
return e;
}
);
if (d)
debug.outgoingHttpResponse(httpResponse, sessionContext.deviceId, _body);
if (d) {
debug.incomingHttpRequest(httpRequest, null, bodyStr);
debug.outgoingHttpResponse(httpResponse, null, _body);
}
httpResponse.end(_body);
return;
}