From bbd9b7f55cc95b3b648e7a67fff31057b3e2d62b Mon Sep 17 00:00:00 2001 From: Maxim Bagryantsev Date: Mon, 15 Mar 2021 20:44:48 +0300 Subject: [PATCH] Moved Debug.WriteLine to Pipe disconnect --- FFMpegCore/FFMpeg/Arguments/PipeArgument.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs index e169400..fcb944a 100644 --- a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs @@ -40,8 +40,7 @@ public async Task During(CancellationToken cancellationToken = default) { try { - await ProcessDataAsync(cancellationToken); - Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}"); + await ProcessDataAsync(cancellationToken); } catch (TaskCanceledException) { @@ -49,6 +48,7 @@ public async Task During(CancellationToken cancellationToken = default) } finally { + Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}"); Pipe?.Disconnect(); } }