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