mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Merge pull request #11592 from akallabeth/timer-fix
[core,timer] start timterID with 1
This commit is contained in:
commit
b595a6cba8
@ -61,7 +61,7 @@ FreeRDP_TimerID freerdp_timer_add(rdpContext* context, uint64_t intervalNS,
|
||||
return false;
|
||||
|
||||
const uint64_t cur = winpr_GetTickCount64NS();
|
||||
const timer_entry_t entry = { .id = timer->maxIdx++,
|
||||
const timer_entry_t entry = { .id = ++timer->maxIdx,
|
||||
.intervallNS = intervalNS,
|
||||
.nextRunTimeNS = cur + intervalNS,
|
||||
.cb = callback,
|
||||
|
Loading…
Reference in New Issue
Block a user