fix(MobileService): Update last update time

This commit is contained in:
Yimura 2022-05-11 00:02:33 +02:00
parent ec52c71365
commit 1ad4e75a29
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -48,7 +48,8 @@ namespace big
void mobile_service::refresh_personal_vehicles() void mobile_service::refresh_personal_vehicles()
{ {
const auto now = std::chrono::high_resolution_clock::now(); const auto now = std::chrono::high_resolution_clock::now();
if (now - m_last_update < 10s) return; if (std::chrono::duration_cast<std::chrono::seconds>(now - m_last_update) < 10s) return;
m_last_update = std::chrono::high_resolution_clock::now();
g_fiber_pool->queue_job([this] g_fiber_pool->queue_job([this]
{ {