call timers with queuer if set

pull/959/head
Jeff Becker 5 years ago
parent 6f36ac7a22
commit 38628ca153
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -11,6 +11,12 @@ namespace llarp
void
Logic::tick(llarp_time_t now)
{
if(m_Queue)
{
llarp_timer_set_time(m_Timer, now);
m_Queue(std::bind(&llarp_timer_tick_all, m_Timer));
return;
}
llarp_timer_tick_all_async(m_Timer, m_Thread, now);
}

Loading…
Cancel
Save