mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
fix(MobileService): Update last update time
This commit is contained in:
parent
9649c8f8fe
commit
addad5d44b
@ -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]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user