socketclient修改
parent
1bc070e881
commit
a6674f6c56
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue