diff options
author | Angus Gratton <angus@redyak.com.au> | 2023-11-30 14:32:41 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-08 12:48:50 +1100 |
commit | df3948d3c23e3572c49d18ede03bf3ac97ee601c (patch) | |
tree | 7435061520a222a0ef859535a6c814d9eaffb486 /extmod/modssl_mbedtls.c | |
parent | f5be0128e4da1417136495c20888f8291cd22386 (diff) | |
download | micropython-df3948d3c23e3572c49d18ede03bf3ac97ee601c.tar.gz micropython-df3948d3c23e3572c49d18ede03bf3ac97ee601c.zip |
extmod: Switch to use new event functions.
See previous commit for details of these functions. As of this commit,
these still call the old hook macros on all ports.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'extmod/modssl_mbedtls.c')
-rw-r--r-- | extmod/modssl_mbedtls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extmod/modssl_mbedtls.c b/extmod/modssl_mbedtls.c index 449952594c..1d7705c17f 100644 --- a/extmod/modssl_mbedtls.c +++ b/extmod/modssl_mbedtls.c @@ -391,9 +391,7 @@ STATIC mp_obj_t ssl_socket_make_new(mp_obj_ssl_context_t *ssl_context, mp_obj_t if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE) { goto cleanup; } - #ifdef MICROPY_EVENT_POLL_HOOK - MICROPY_EVENT_POLL_HOOK - #endif + mp_event_wait_ms(1); } } |