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:
Paul Sokolovsky 2016-04-25 21:26:07 +03:00
parent bababce6de
commit 7a012f4793
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}