diff --git a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs index 3d451e9..428f21b 100644 --- a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs @@ -42,7 +42,7 @@ public async Task During(CancellationToken cancellationToken = default) { await ProcessDataAsync(cancellationToken); Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}"); - Pipe.Disconnect(); + Pipe?.Disconnect(); } catch (TaskCanceledException) {