Skip to content

Commit f960c5b

Browse files
committed
SSLSocket: propagate any exception from socket.settimeout directly
1 parent b330989 commit f960c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-module/ssl/SSLSocket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ static int ssl_socket_close(ssl_sslsocket_obj_t *self) {
154154
return call_method_errno(0, self->close_args);
155155
}
156156

157-
static int ssl_socket_settimeout(ssl_sslsocket_obj_t *self, mp_obj_t timeout_obj) {
157+
static void ssl_socket_settimeout(ssl_sslsocket_obj_t *self, mp_obj_t timeout_obj) {
158158
self->settimeout_args[2] = timeout_obj;
159-
return call_method_errno(1, self->settimeout_args);
159+
return mp_call_method_n_kw(1, 0, self->settimeout_args);
160160
}
161161

162162
static int ssl_socket_listen(ssl_sslsocket_obj_t *self, mp_int_t backlog) {

0 commit comments

Comments
 (0)