Nullify Scoped Service Delegates

This commit is contained in:
MidoriKami 2023-09-19 23:43:45 -07:00
parent b0986a5225
commit c305c01dfd
9 changed files with 27 additions and 1 deletions

View file

@ -169,6 +169,8 @@ internal class GameNetworkPluginScoped : IDisposable, IServiceType, IGameNetwork
public void Dispose()
{
this.gameNetworkService.NetworkMessage -= this.NetworkMessageForward;
this.NetworkMessage = null;
}
private void NetworkMessageForward(nint dataPtr, ushort opCode, uint sourceActorId, uint targetActorId, NetworkMessageDirection direction)