public void SendPackets(IEnumerable <Packet> pkts) { using (TimedLock.Lock(DcLock)) { if (State != ProtocolState.Disconnected) { _handler.SendPackets(pkts); } } }
public void SendPackets(IEnumerable <Packet> pkts, PacketPriority priority = PacketPriority.Normal) { using (TimedLock.Lock(DcLock)) { if (State != ProtocolState.Disconnected) { _handler.SendPackets(pkts, priority); } } }