mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
Move comment
This commit is contained in:
parent
5f2147e207
commit
6fc811bc39
1 changed files with 4 additions and 3 deletions
|
|
@ -53,10 +53,11 @@ public abstract class PipeArgument
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}");
|
||||||
|
|
||||||
|
//if Pipe is null, then the lock doesnt matter,
|
||||||
|
//Because the next code will not execute anyways.
|
||||||
|
//so we can use a new object
|
||||||
lock (Pipe ?? new object())
|
lock (Pipe ?? new object())
|
||||||
//if Pipe is null, then the lock doesnt matter,
|
|
||||||
//Because the next code will not execute anyways.
|
|
||||||
//so we can use a new object
|
|
||||||
{
|
{
|
||||||
if (Pipe is { IsConnected: true })
|
if (Pipe is { IsConnected: true })
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue