File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
FFMpegCore/FFMpeg/Arguments Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Diagnostics ;
2
3
using System . IO . Pipes ;
3
4
using System . Threading ;
4
5
using System . Threading . Tasks ;
@@ -30,6 +31,7 @@ public void Pre()
30
31
31
32
public void Post ( )
32
33
{
34
+ Debug . WriteLine ( $ "Disposing NamedPipeServerStream on { GetType ( ) . Name } ") ;
33
35
Pipe ? . Dispose ( ) ;
34
36
Pipe = null ! ;
35
37
}
@@ -39,9 +41,11 @@ public async Task During(CancellationToken cancellationToken = default)
39
41
try
40
42
{
41
43
await ProcessDataAsync ( cancellationToken ) ;
44
+ Debug . WriteLine ( $ "Disconnecting NamedPipeServerStream on { GetType ( ) . Name } ") ;
42
45
}
43
46
catch ( TaskCanceledException )
44
47
{
48
+ Debug . WriteLine ( $ "ProcessDataAsync on { GetType ( ) . Name } cancelled") ;
45
49
}
46
50
Pipe . Disconnect ( ) ;
47
51
}
You can’t perform that action at this time.
0 commit comments