mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +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 */
|
||||
|
||||
NEXT:
|
||||
- try to have BTdaemon use 0% cpu time when idle, after disconnect
|
||||
- implement cocoa_remove_data_source
|
||||
- fix BTstack and/or WiiMote Demo crash when quitting app
|
||||
- prepend all source files with 'new BSD' copyright header
|
||||
|
@ -94,11 +94,9 @@ void posix_execute() {
|
||||
tv.tv_usec += 1000000;
|
||||
tv.tv_sec--;
|
||||
}
|
||||
if (tv.tv_sec < 0){
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 0;
|
||||
if (tv.tv_sec > 0 || (tv.tv_sec == 0 && tv.tv_usec > 0)){
|
||||
timeout = &tv;
|
||||
}
|
||||
timeout = &tv;
|
||||
}
|
||||
|
||||
// wait for ready FDs
|
||||
|
Loading…
x
Reference in New Issue
Block a user