fix new timer crash
This commit is contained in:
parent
ee34bdb1c8
commit
46baaf0b8f
@ -29,7 +29,9 @@ TaskQueueTimeoutFactory::TaskQueueTimeout::Start(DurationMs duration_ms, Timeout
|
|||||||
parent_.task_queue_.PostDelayedTaskWithPrecision(
|
parent_.task_queue_.PostDelayedTaskWithPrecision(
|
||||||
precision_,
|
precision_,
|
||||||
[timeout_id, this]() {
|
[timeout_id, this]() {
|
||||||
|
if (timeout_id != this->timeout_id_) { return; }
|
||||||
LOGV("timer", "Timeout expired: {}", timeout_id);
|
LOGV("timer", "Timeout expired: {}", timeout_id);
|
||||||
|
|
||||||
ASSERT(posted_task_expiration_ != std::numeric_limits<TimeMs>::max(), "");
|
ASSERT(posted_task_expiration_ != std::numeric_limits<TimeMs>::max(), "");
|
||||||
posted_task_expiration_ = std::numeric_limits<TimeMs>::max();
|
posted_task_expiration_ = std::numeric_limits<TimeMs>::max();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user