Akka.Interfaced.SlimSocket.Client.TcpConnection.CloseSend C# (CSharp) Method

CloseSend() public method

public CloseSend ( ) : void
return void
        public void CloseSend()
        {
            if (_state == TcpState.Connected)
            {
                _state = TcpState.Closing;

                if (_sendPacketQueue.Count > 0)
                {
                    lock (_sendPacketQueue)
                        _sendPacketQueue.Add(null);
                }
                else
                {
                    lock (_sendPacketQueue)
                        _sendPacketQueue.Add(null);
                    ProcessSend();
                }
            }
        }