Example #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();
        }
Example #2
0
 // Disposes of this peer, stopping any threads
 internal void Dispose()
 {
     // Stop packet buffer thread
     StopEvent.Set();
     PacketBufferThread.Join();
 }