We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d1b17 commit f0336b3Copy full SHA for f0336b3
libraries/WiFi/src/WiFiServer.cpp
@@ -49,7 +49,7 @@ WiFiClient WiFiServer::available(){
49
else {
50
struct sockaddr_in _client;
51
int cs = sizeof(struct sockaddr_in);
52
- client_sock = accept(sockfd, (struct sockaddr *)&_client, (socklen_t*)&cs);
+ client_sock = lwip_accept_r(sockfd, (struct sockaddr *)&_client, (socklen_t*)&cs);
53
}
54
if(client_sock >= 0){
55
int val = 1;
@@ -96,7 +96,7 @@ bool WiFiServer::hasClient() {
96
97
98
99
- _accepted_sockfd = accept(sockfd, (struct sockaddr *)&_client, (socklen_t*)&cs);
+ _accepted_sockfd = lwip_accept_r(sockfd, (struct sockaddr *)&_client, (socklen_t*)&cs);
100
if (_accepted_sockfd >= 0) {
101
return true;
102
0 commit comments