File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ WiFiClient WiFiServer::available(){
49
49
else {
50
50
struct sockaddr_in _client;
51
51
int cs = sizeof (struct sockaddr_in );
52
- client_sock = accept (sockfd, (struct sockaddr *)&_client, (socklen_t *)&cs);
52
+ client_sock = lwip_accept_r (sockfd, (struct sockaddr *)&_client, (socklen_t *)&cs);
53
53
}
54
54
if (client_sock >= 0 ){
55
55
int val = 1 ;
@@ -96,7 +96,7 @@ bool WiFiServer::hasClient() {
96
96
}
97
97
struct sockaddr_in _client;
98
98
int cs = sizeof (struct sockaddr_in );
99
- _accepted_sockfd = accept (sockfd, (struct sockaddr *)&_client, (socklen_t *)&cs);
99
+ _accepted_sockfd = lwip_accept_r (sockfd, (struct sockaddr *)&_client, (socklen_t *)&cs);
100
100
if (_accepted_sockfd >= 0 ) {
101
101
return true ;
102
102
}
You can’t perform that action at this time.
0 commit comments