mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Handle disposing of debugger server
This commit is contained in:
@@ -195,7 +195,7 @@ namespace Microsoft.Iris
|
||||
|
||||
if (DebugSettings.DebugConnectionUri != null)
|
||||
{
|
||||
Debugger = new Debug.NetMQ.ZmqDebuggerServer(DebugSettings.DebugConnectionUri);
|
||||
Debugger = new Debug.SystemNet.NetDebuggerServer(DebugSettings.DebugConnectionUri);
|
||||
DebuggerServerReady?.Invoke(Debugger, EventArgs.Empty);
|
||||
}
|
||||
|
||||
@@ -309,7 +309,11 @@ namespace Microsoft.Iris
|
||||
if (s_initializationState == InitializationState.InitializedWithoutUI)
|
||||
RenderApi.ShutdownForToolOnly();
|
||||
StaticServices.Uninitialize();
|
||||
|
||||
Debug.Trace.Shutdown();
|
||||
if (Debugger is IDisposable disposable)
|
||||
disposable.Dispose();
|
||||
|
||||
ErrorManager.OnErrors -= new NotifyErrorBatch(NotifyErrorBatchHandler);
|
||||
s_initializationState = InitializationState.NotInitialized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user