mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Handle profiler cancel
This commit is contained in:
committed by
Lorenz Junglas
parent
556e4db9fb
commit
fd5472e6ca
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user