ObjectDisposedException.ThrowIf

This commit is contained in:
Gabriel A 2023-12-24 13:18:35 -03:00
parent 689eadaece
commit 94bd78f48a

View File

@ -63,10 +63,7 @@ namespace Ryujinx.Cpu.LightningJit
public void Execute(State.ExecutionContext context, ulong address)
{
if (_disposed)
{
throw new ObjectDisposedException(nameof(Translator));
}
ObjectDisposedException.ThrowIf(_disposed, this);
NativeInterface.RegisterThread(context, Memory, this);