Beispiel #1
0
        public void Test(OutboundTunnel tunnel)
        {
            if (tunnel == null)
            {
                return;
            }

            var test = TestResults.Get(tunnel);

            if (test != null && test.Pass > 0)
            {
                return;
            }
            if (OutstandingTests.Get(tunnel) != null)
            {
                return;
            }

            lock ( OutboundTunnels )
            {
                OutboundTunnels.AddLast(tunnel);
            }
            TunnelAdded.Set();
        }
Beispiel #2
0
 internal void AddOutboundPending(OutboundTunnel tunnel)
 {
     lock (OutboundPending) OutboundPending.Add(tunnel);
 }