Commit a02386a
committed
metrics: fix for pending jobs being delayed one or more frames
The list of pending jobs was being traversed using an index that was
unconditionally incremented, even after removing an item from the list.
This could cause a job to be skipped in `SendPendingEvents`, at least
until the next frame.
This was not a fatal error as any skipped jobs would be handled in the
later calls to SendPendingEvents (next tick).
Noticed while auditing the code for a reported issue with dropped events.1 parent 0f52d96 commit a02386a
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
0 commit comments