Handle profiler cancel

This commit is contained in:
766974616c79
2025-12-05 01:05:45 +01:00
committed by Lorenz Junglas
parent 556e4db9fb
commit fd5472e6ca

View File

@@ -40,7 +40,17 @@ internal class EtwLogger
WorkingDirectory = Path.Combine( Environment.CurrentDirectory, "bin", "managed" )
};
var profilerProcess = Process.Start( startInfo );
try
{
Process.Start( startInfo );
}
catch
{
CleanUp();
throw;
}
_pipeServer.WaitForConnection();
_writer = new StreamWriter( _pipeServer ) { AutoFlush = true };