mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
unix/moduselect: Support growing of poll array.
This commit is contained in:
@@ -65,7 +65,9 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) {
|
||||
}
|
||||
}
|
||||
if (entries->fd != -1) {
|
||||
assert(0);
|
||||
i = self->len++;
|
||||
self->entries = m_renew(struct pollfd, self->entries, self->alloc, self->alloc + 4);
|
||||
self->alloc += 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user