From ad08fe0c08bc37992b7168a2b71d42cb50fae10d Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 25 Feb 2020 08:01:25 -0500 Subject: [PATCH] silence a few more routine websocket errors --- lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index bd5c99629..9201599e4 100644 --- a/lib/api.js +++ b/lib/api.js @@ -23,7 +23,7 @@ module.exports.create = function (config) { }); } - if (reason && reason === 'SOCKET_CLOSED') { return; } + if (['SOCKET_CLOSED', 'SOCKET_ERROR'].indexOf(reason)) { return; } log.verbose('SESSION_CLOSE_ROUTINE', { userId: userId, reason: reason,