mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Make close safe
This commit is contained in:
parent
8787ccaa8d
commit
372e53aa61
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue