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(){
4949 else {
5050 struct sockaddr_in _client;
5151 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);
5353 }
5454 if (client_sock >= 0 ){
5555 int val = 1 ;
@@ -96,7 +96,7 @@ bool WiFiServer::hasClient() {
9696 }
9797 struct sockaddr_in _client;
9898 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);
100100 if (_accepted_sockfd >= 0 ) {
101101 return true ;
102102 }
You can’t perform that action at this time.
0 commit comments