mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174043 - Run DisableTimer if timer is not yet disabled. r=dglastonbury
This commit is contained in:
parent
cb755f2a73
commit
6063c7d974
@ -57,13 +57,12 @@ void
|
||||
WebGLContextLossHandler::TimerCallback()
|
||||
{
|
||||
MOZ_ASSERT(NS_GetCurrentThread() == mThread);
|
||||
MOZ_ASSERT(mIsTimerRunning);
|
||||
mIsTimerRunning = false;
|
||||
|
||||
if (mIsDisabled)
|
||||
return;
|
||||
|
||||
MOZ_ASSERT(mIsTimerRunning);
|
||||
mIsTimerRunning = false;
|
||||
|
||||
// If we need to run the timer again, restart it immediately.
|
||||
// Otherwise, the code we call into below might *also* try to
|
||||
// restart it.
|
||||
@ -100,7 +99,7 @@ WebGLContextLossHandler::RunTimer()
|
||||
void
|
||||
WebGLContextLossHandler::DisableTimer()
|
||||
{
|
||||
if (!mIsDisabled)
|
||||
if (mIsDisabled)
|
||||
return;
|
||||
|
||||
mIsDisabled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user