mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 14:11:09 +00:00
Android- fix a crash when the game view is closed before it started running
When the game view is closed, if it hasn’t started running yet the stopwatch would still be null- added a null check.
This commit is contained in:
parent
57ceff19b9
commit
0e20faf896
|
@ -457,7 +457,7 @@ namespace OpenTK.Platform.Android
|
||||||
|
|
||||||
// if the render thread is paused, let it run so it exits
|
// if the render thread is paused, let it run so it exits
|
||||||
pauseSignal.Set ();
|
pauseSignal.Set ();
|
||||||
stopWatch.Stop ();
|
if (stopWatch != null) stopWatch.Stop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PauseThread ()
|
void PauseThread ()
|
||||||
|
|
Loading…
Reference in a new issue