fix run loop for outdated timers

This commit is contained in:
matthias.ringwald 2009-10-28 21:25:51 +00:00
parent 7625c58d57
commit bfea266536
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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