extmod/modlwip: Protect recv/accept Python callback against exceptions.
Using usual call_function_*_protected() helper, to avoid NLR jump crashes.
This commit is contained in:
parent
bababce6de
commit
7a012f4793
|
@ -264,7 +264,7 @@ static inline void poll_sockets(void) {
|
|||
|
||||
static inline void exec_user_callback(lwip_socket_obj_t *socket) {
|
||||
if (socket->callback != MP_OBJ_NULL) {
|
||||
mp_call_function_1(socket->callback, socket);
|
||||
mp_call_function_1_protected(socket->callback, socket);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue