Skip to content

Commit 73dddca

Browse files
Fix an occassional dead lock on restarting debug
1 parent cad2aa7 commit 73dddca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Server/PsesDebugServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void Dispose()
119119
// It represents the debugger on the PowerShell process we're in,
120120
// while a new debug server is spun up for every debugging session
121121
_psesHost.DebugContext.IsDebugServerActive = false;
122-
_debugAdapterServer.Dispose();
122+
_debugAdapterServer?.Dispose();
123123
_inputStream.Dispose();
124124
_outputStream.Dispose();
125125
_serverStopped.SetResult(true);

0 commit comments

Comments
 (0)