socketclient修改

tcx_xiyou_bt_ios
wangzhenxing 2024-06-21 13:41:40 +08:00
parent 1bc070e881
commit a6674f6c56
1 changed files with 5 additions and 4 deletions

View File

@ -574,9 +574,7 @@ public class SocketClient
int msgId = _event.msgId;
ByteBuffer msg = _event.msg;
//Debug.LogError("msgId:" + msgId);
//Debug.LogError("m_indicationSid:" + m_indicationSid);
//Debug.LogError("sid:" + _event.sid);
//处理心跳包回调
if (msgId == 1001)
@ -600,6 +598,9 @@ public class SocketClient
//处理推送消息当序列号比本地游标大1处理推送信息否则不处理
if (dispatchers.ContainsKey(msgId))
{
Debug.LogError("msgId:" + msgId);
Debug.LogError("m_indicationSid:" + m_indicationSid);
Debug.LogError("sid:" + _event.sid);
if (m_indicationSid == _event.sid - 1)
{
m_indicationSid++;
@ -635,7 +636,7 @@ public class SocketClient
// 回复未监听的消息
if (m_indicationSid == _event.sid - 1)
{
m_indicationSid++;
//m_indicationSid++;
}
if (_event.sid <= m_indicationSid)
{