mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 21:41:13 +00:00
posix: avoid crash when data source is removed and fd set to -1
This commit is contained in:
parent
ab379a4a0a
commit
4b7565a250
@ -209,6 +209,7 @@ static void btstack_run_loop_posix_execute(void) {
|
||||
log_debug("btstack_run_loop_posix_execute: process read ds %p with fd %u\n", ds, ds->fd);
|
||||
ds->process(ds, DATA_SOURCE_CALLBACK_READ);
|
||||
}
|
||||
if (data_sources_modified) break;
|
||||
if (FD_ISSET(ds->fd, &descriptors_write)) {
|
||||
log_debug("btstack_run_loop_posix_execute: process write ds %p with fd %u\n", ds, ds->fd);
|
||||
ds->process(ds, DATA_SOURCE_CALLBACK_WRITE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user