Commit f2ccf87e authored by iabdalkader's avatar iabdalkader Committed by Damien George

extmod/network_ninaw10: Use socket timeout preset in modusocket.

parent 842da930
......@@ -350,9 +350,8 @@ STATIC int network_ninaw10_socket_socket(mod_network_socket_obj_t *socket, int *
return -1;
}
// store state of this socket
// set socket state
socket->fileno = fd;
socket->timeout = 0; // blocking
socket->bound = false;
return 0;
}
......@@ -413,9 +412,8 @@ STATIC int network_ninaw10_socket_accept(mod_network_socket_obj_t *socket,
return -1;
}
// Set default socket timeout.
// set socket state
socket2->fileno = fd;
socket2->timeout = 0;
socket2->bound = false;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment