Example #1
0
 private void SendPacketThread()
 {
     while (sendPackets.Count != 0)
     {
         CsServerPacket csServerPacket = sendPackets.Dequeue();
         try
         {
             csServerPacket.write(this);
         }
         catch (Exception ex)
         {
             ProjectData.SetProjectError(ex);
             Exception ex2 = ex;
             log.Error((object)ex2);
             ProjectData.ClearProjectError();
         }
         base.SendPacket(csServerPacket);
     }
     IsWrite = false;
 }
Example #2
0
 protected void SendPacket(CsServerPacket packet)
 {
     base.Client.SendPacket(packet);
 }