private void SendPacketThread() { while (sendPackets.Count != 0) { LsServerPacket lsServerPacket = sendPackets.Dequeue(); try { lsServerPacket.write(this); } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception ex2 = ex; log.Error((object)ex2); ProjectData.ClearProjectError(); } base.SendPacket(lsServerPacket); } IsWrite = false; }
protected void SendPacket(LsServerPacket packet) { base.Client.SendPacket(packet); }
internal void Close(LsServerPacket packet) { sendPackets.Clear(); sendPackets.Enqueue(packet); Disconnect(); }