Compare commits

..

No commits in common. "02e94317e4eb165ec02df2c4996ef01a3e5e58af" and "0783d7d90e492e993d5dc90d2d5a9bae7a55c10d" have entirely different histories.

View File

@ -17,8 +17,6 @@ namespace AxibugEmuOnline.Client.Network
private NetMsg() { } private NetMsg() { }
public static object lockQueueObj = new object();
#region RegisterMsgEvent #region RegisterMsgEvent
public void RegNetMsgEvent(int cmd, Action<byte[]> callback) public void RegNetMsgEvent(int cmd, Action<byte[]> callback)
@ -62,16 +60,11 @@ namespace AxibugEmuOnline.Client.Network
#region PostEvent #region PostEvent
public void EnqueueNesMsg(int cmd, int ERRCODE, byte[] arg) public void EnqueueNesMsg(int cmd, int ERRCODE, byte[] arg)
{
lock (lockQueueObj)
{ {
queueNetMsg.Enqueue((cmd, ERRCODE, arg)); queueNetMsg.Enqueue((cmd, ERRCODE, arg));
} }
}
public void DequeueNesMsg() public void DequeueNesMsg()
{
lock (lockQueueObj)
{ {
while (queueNetMsg.Count > 0) while (queueNetMsg.Count > 0)
{ {
@ -79,7 +72,6 @@ namespace AxibugEmuOnline.Client.Network
PostNetMsgEvent(msgData.Item1, msgData.Item2, msgData.Item3); PostNetMsgEvent(msgData.Item1, msgData.Item2, msgData.Item3);
} }
} }
}
public void PostNetMsgEvent(int cmd, int ERRCODE, byte[] arg) public void PostNetMsgEvent(int cmd, int ERRCODE, byte[] arg)
{ {