mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
fix run loop for outdated timers
This commit is contained in:
parent
7625c58d57
commit
bfea266536
1
TODO.txt
1
TODO.txt
@ -1,6 +1,7 @@
|
|||||||
/* new todo file for BTstack */
|
/* new todo file for BTstack */
|
||||||
|
|
||||||
NEXT:
|
NEXT:
|
||||||
|
- try to have BTdaemon use 0% cpu time when idle, after disconnect
|
||||||
- implement cocoa_remove_data_source
|
- implement cocoa_remove_data_source
|
||||||
- fix BTstack and/or WiiMote Demo crash when quitting app
|
- fix BTstack and/or WiiMote Demo crash when quitting app
|
||||||
- prepend all source files with 'new BSD' copyright header
|
- prepend all source files with 'new BSD' copyright header
|
||||||
|
@ -94,11 +94,9 @@ void posix_execute() {
|
|||||||
tv.tv_usec += 1000000;
|
tv.tv_usec += 1000000;
|
||||||
tv.tv_sec--;
|
tv.tv_sec--;
|
||||||
}
|
}
|
||||||
if (tv.tv_sec < 0){
|
if (tv.tv_sec > 0 || (tv.tv_sec == 0 && tv.tv_usec > 0)){
|
||||||
tv.tv_sec = 0;
|
timeout = &tv;
|
||||||
tv.tv_usec = 0;
|
|
||||||
}
|
}
|
||||||
timeout = &tv;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for ready FDs
|
// wait for ready FDs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user