mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Only disconnect if pipe not already disposed
Former-commit-id: 01b1dd228e
This commit is contained in:
parent
2c1831587f
commit
4d6db5a9b5
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ public async Task During(CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
await ProcessDataAsync(cancellationToken);
|
await ProcessDataAsync(cancellationToken);
|
||||||
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
||||||
Pipe.Disconnect();
|
Pipe?.Disconnect();
|
||||||
}
|
}
|
||||||
catch (TaskCanceledException)
|
catch (TaskCanceledException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue