Exemplo n.º 1
0
        // Disposes of this peer, stopping any threads
        internal void Dispose()
        {
            // Stop packet buffer thread
            StopEvent.Set();
            PacketBufferThread.Join();

            // Kill underlying P2P peer
            P2pPeer.Stop();
        }
Exemplo n.º 2
0
 // Disposes of this peer, stopping any threads
 internal void Dispose()
 {
     // Stop packet buffer thread
     StopEvent.Set();
     PacketBufferThread.Join();
 }