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,