From 8d47f50eed2a0b1983ff1785ec8c09b928fda372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E7=8C=BF?= <1083092844@qq.com> Date: Sat, 1 Apr 2023 00:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E5=BC=B9=E5=B9=95id=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=A0=A1=E9=AA=8C=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BarrageGrab/WssBarrageGrab.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BarrageGrab/WssBarrageGrab.cs b/BarrageGrab/WssBarrageGrab.cs index e59e42a..614da85 100644 --- a/BarrageGrab/WssBarrageGrab.cs +++ b/BarrageGrab/WssBarrageGrab.cs @@ -159,7 +159,7 @@ namespace BarrageGrab } else { - msgIdList = new List(1000); + msgIdList = new List(320); msgDic.Add(msg.Method, msgIdList); } if (msgIdList.Contains(msg.msgId)) @@ -168,7 +168,7 @@ namespace BarrageGrab } msgIdList.Add(msg.msgId); - if (msgIdList.Count > 990) msgIdList.RemoveAt(0); + if (msgIdList.Count > 300) msgIdList.RemoveAt(0); try {