Move comment

This commit is contained in:
Malte Rosenbjerg 2025-10-16 13:04:58 +02:00
parent 5f2147e207
commit 6fc811bc39

View file

@ -53,10 +53,11 @@ public abstract class PipeArgument
finally
{
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())
//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 })
{