diff --git a/BililiveRecorder.Flv/Writer/FlvProcessingContextWriter.cs b/BililiveRecorder.Flv/Writer/FlvProcessingContextWriter.cs index 2b1b2f4..ea53c1a 100644 --- a/BililiveRecorder.Flv/Writer/FlvProcessingContextWriter.cs +++ b/BililiveRecorder.Flv/Writer/FlvProcessingContextWriter.cs @@ -271,7 +271,13 @@ namespace BililiveRecorder.Flv.Writer if (disposing) { // dispose managed state (managed objects) - this.CloseCurrentFileImpl(); + try + { + this.CloseCurrentFileImpl(); + } + catch (Exception) + { } + this.tagWriter.Dispose(); }