From 6fc811bc39718bcb71c1b0a32a7a56c30cbcfaac Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Thu, 16 Oct 2025 13:04:58 +0200 Subject: [PATCH] Move comment --- FFMpegCore/FFMpeg/Arguments/PipeArgument.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs index ee2d6f7..3b03866 100644 --- a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs @@ -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 }) {