diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/UnixNamedPipe.cs b/FFMpegCore/FFMPEG/Argument/Atoms/UnixNamedPipe.cs index 3cbe30d..d862b26 100644 --- a/FFMpegCore/FFMPEG/Argument/Atoms/UnixNamedPipe.cs +++ b/FFMpegCore/FFMPEG/Argument/Atoms/UnixNamedPipe.cs @@ -84,10 +84,8 @@ public Task During(CancellationToken cancellationToken) public void Close() { - if (!File.Exists(PipePath)) - throw new IOException($"Could not find pipe to close"); - - File.Delete(PipePath); + if (File.Exists(PipePath)) + File.Delete(PipePath); } public System.IO.Stream GetStream()