Skip to content

Commit

Permalink
Close inspection sessions after use
Browse files Browse the repository at this point in the history
  • Loading branch information
WheretIB committed May 31, 2020
1 parent 684f333 commit fe0868c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LuaDkmDebuggerComponent/LocalComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,8 @@ DkmCustomMessage IDkmCustomMessageCallbackReceiver.SendHigher(DkmCustomMessage c
{
log.Error($"Failed to evaluate Lua state location");
}

inspectionSession.Close();
}
else if (data.breakpointId == processData.breakpointLuaThreadDestroy)
{
Expand All @@ -2068,6 +2070,8 @@ DkmCustomMessage IDkmCustomMessageCallbackReceiver.SendHigher(DkmCustomMessage c

processData.symbolStore.Remove(stateAddress.Value);
}

inspectionSession.Close();
}
else if (data.breakpointId == processData.breakpointLuaFileLoaded || data.breakpointId == processData.breakpointLuaFileLoadedSolCompat)
{
Expand Down Expand Up @@ -2101,6 +2105,8 @@ DkmCustomMessage IDkmCustomMessageCallbackReceiver.SendHigher(DkmCustomMessage c
{
log.Error("Failed to evaluate Lua buffer data");
}

inspectionSession.Close();
}
else if (data.breakpointId == processData.breakpointLuaBufferLoaded)
{
Expand Down Expand Up @@ -2146,6 +2152,8 @@ DkmCustomMessage IDkmCustomMessageCallbackReceiver.SendHigher(DkmCustomMessage c
{
log.Error("Failed to evaluate Lua buffer data");
}

inspectionSession.Close();
}
else if (data.breakpointId == processData.breakpointLuaHelperInitialized)
{
Expand Down

0 comments on commit fe0868c

Please sign in to comment.