diff --git a/index.js b/index.js index ca19e2f..da82aba 100644 --- a/index.js +++ b/index.js @@ -323,7 +323,7 @@ class WebSocketClient { handleError(error, reject) { // 检查是否为内存相关错误,进行降级处理 - if (error.includes('maxmemory') || || error.includes('Cannot process')) { + if (error.includes('maxmemory') || error.includes('Cannot process')) { Logger.warn('WebSocket警告:', error); return; }