1 parent 5936168 commit 12a3fccCopy full SHA for 12a3fcc
1 file changed
ports/esp32/modsocket.c
@@ -146,12 +146,8 @@ NORETURN static void exception_from_errno(int _errno) {
146
mp_raise_OSError(_errno);
147
}
148
149
-void check_for_exceptions() {
150
- mp_obj_t exc = MP_STATE_VM(mp_pending_exception);
151
- if (exc != MP_OBJ_NULL) {
152
- MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL;
153
- nlr_raise(exc);
154
- }
+static inline void check_for_exceptions(void) {
+ mp_handle_pending();
155
156
157
static int _socket_getaddrinfo2(const mp_obj_t host, const mp_obj_t portx, struct addrinfo **resp) {
0 commit comments