Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitb98b898
committed
FIX: Event loop timers should only run for the specified time
The implementation of start_event_loop would previously just countthe number of sleeps that occurred. But this could lead to longerevent loop times if flush_events() added time into the loop. Wewant the condition to be dependent on the end-time so we don'trun our loop longer than necessary.1 parent0f6a157 commitb98b898
1 file changed
+3
-5
lines changedLines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2320 | 2320 |
| |
2321 | 2321 |
| |
2322 | 2322 |
| |
2323 |
| - | |
2324 |
| - | |
| 2323 | + | |
2325 | 2324 |
| |
2326 |
| - | |
| 2325 | + | |
2327 | 2326 |
| |
2328 |
| - | |
2329 |
| - | |
| 2327 | + | |
2330 | 2328 |
| |
2331 | 2329 |
| |
2332 | 2330 |
| |
|
0 commit comments
Comments
(0)