Skip to content

Commit

Permalink
Unload assemblies on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nxrighthere authored Jun 24, 2022
1 parent 18cb863 commit 9712ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Managed/Runtime/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ internal static unsafe IntPtr ManagedCommand(Command command) {

catch (Exception exception) {
Exception("Loading of assemblies failed\r\n" + exception.ToString());
UnloadAssemblies();
}

return default;
Expand Down

0 comments on commit 9712ba2

Please sign in to comment.