Only call interrupt handler if still running

This commit is contained in:
gdkchan 2020-12-10 13:02:55 -03:00 committed by gdk
parent 8214eac625
commit c0f9e6bdac

View file

@ -115,7 +115,11 @@ namespace ARMeilleure.State
internal void CheckInterrupt()
{
_nativeContext.SetInterruptState(0);
_interruptCallback?.Invoke(this);
if (Running)
{
_interruptCallback?.Invoke(this);
}
}
public void RequestInterrupt()