Exemplo n.º 1
0
        public void ReturnConnection(MqttConnection connection)
        {
            try
            {
                connection.ResetSocket();
            }
            catch (Exception)
            {
            }

            connection.Reset();

            Interlocked.Increment(ref numberOfConnectionsReturned);

            unconnectedClientPool.Push(connection);
        }