Skip to content

Commit fd723e0

Browse files
committed
Add debug info
1 parent 9c3d8d4 commit fd723e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FFMpegCore/FFMpeg/Arguments/PipeArgument.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Diagnostics;
23
using System.IO.Pipes;
34
using System.Threading;
45
using System.Threading.Tasks;
@@ -30,6 +31,7 @@ public void Pre()
3031

3132
public void Post()
3233
{
34+
Debug.WriteLine($"Disposing NamedPipeServerStream on {GetType().Name}");
3335
Pipe?.Dispose();
3436
Pipe = null!;
3537
}
@@ -39,9 +41,11 @@ public async Task During(CancellationToken cancellationToken = default)
3941
try
4042
{
4143
await ProcessDataAsync(cancellationToken);
44+
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
4245
}
4346
catch (TaskCanceledException)
4447
{
48+
Debug.WriteLine($"ProcessDataAsync on {GetType().Name} cancelled");
4549
}
4650
Pipe.Disconnect();
4751
}

0 commit comments

Comments
 (0)