public void Stop() { VerboseLog("Finished"); _file?.Dispose(); _client?.Close(); _client?.Dispose(); _socket?.Stop(); }
public void Stop() { VerboseLog("Finished"); if (!_gracefully) { SaveState(); } else if (System.IO.File.Exists(_path + ".peery")) { System.IO.File.Delete(_path + ".peery"); } _file?.Dispose(); _socket?.Close(); _socket?.Dispose(); }