From 505e447e1d974c44a15e153f03b81cda22ac2c48 Mon Sep 17 00:00:00 2001 From: Genteure Date: Mon, 3 May 2021 16:43:02 +0800 Subject: [PATCH] FLV: Fix bug --- BililiveRecorder.Flv/Writer/FlvProcessingContextWriter.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); }