Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitf6e282b
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 commitf6e282b
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2321 | 2321 |
| |
2322 | 2322 |
| |
2323 | 2323 |
| |
2324 |
| - | |
2325 |
| - | |
2326 |
| - | |
| 2324 | + | |
| 2325 | + | |
2327 | 2326 |
| |
2328 | 2327 |
| |
2329 |
| - | |
2330 | 2328 |
| |
2331 | 2329 |
| |
2332 | 2330 |
| |
|
0 commit comments
Comments
(0)