Index: Source/platform/Timer.cpp |
diff --git a/Source/platform/Timer.cpp b/Source/platform/Timer.cpp |
index 86c3d8340522ccb74f0d38d80ecc083d054d4efc..235966fbe161907dcd30d864fa748b1284e644e4 100644 |
--- a/Source/platform/Timer.cpp |
+++ b/Source/platform/Timer.cpp |
@@ -84,7 +84,6 @@ double TimerBase::nextFireInterval() const |
return m_nextFireTime - current; |
} |
-NO_LAZY_SWEEP_SANITIZE_ADDRESS |
void TimerBase::setNextFireTime(double now, double delay) |
{ |
ASSERT(m_thread == currentThread()); |
@@ -103,8 +102,12 @@ void TimerBase::setNextFireTime(double now, double delay) |
} |
} |
+NO_LAZY_SWEEP_SANITIZE_ADDRESS |
void TimerBase::run() |
{ |
+ if (!canFire()) |
+ return; |
+ |
TRACE_EVENT0("blink", "TimerBase::run"); |
ASSERT_WITH_MESSAGE(m_thread == currentThread(), "Timer posted by %s %s was run on a different thread", m_location.functionName(), m_location.fileName()); |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "BlinkInternal"); |