Skip to content

Commit

Permalink
Cleaner event handling in event strip scope
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinVR committed Mar 27, 2021
1 parent 4ae86a3 commit 1c8cbd1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Assets/UdonSharp/Editor/UdonSharpUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,8 @@ public UdonSharpAssemblyLoadStripScope()

if (originalDelegates != null)
{
foreach (Delegate del in handler.GetInvocationList())
handler -= (AssemblyLoadEventHandler)del;

info.SetValue(AppDomain.CurrentDomain, handler);
foreach (Delegate del in originalDelegates)
AppDomain.CurrentDomain.AssemblyLoad -= (AssemblyLoadEventHandler)del;
}
}

Expand Down

0 comments on commit 1c8cbd1

Please sign in to comment.