mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Moved Debug.WriteLine to Pipe disconnect
This commit is contained in:
parent
fe646752d3
commit
bbd9b7f55c
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,6 @@ public async Task During(CancellationToken cancellationToken = default)
|
|||
try
|
||||
{
|
||||
await ProcessDataAsync(cancellationToken);
|
||||
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
|
@ -49,6 +48,7 @@ public async Task During(CancellationToken cancellationToken = default)
|
|||
}
|
||||
finally
|
||||
{
|
||||
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
||||
Pipe?.Disconnect();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue