public override void Flush(TorrentFile file) { Stream s = streamsBuffer.FindStream(file.FullPath); if (s != null) { s.Flush(); } }
public override void Flush(TorrentFile file) { var s = _streamsBuffer.FindStream(file.FullPath); if (s == null) { return; } if (!s.CanWrite) { return; } s.FlushAsync().AsTask().Wait(); }