mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
WiFiServer.cpp: Fix warning (#7755)
* fix warning as below: ...\libraries\ESP8266WiFi\src\WiFiServer.cpp: In member function 'WiFiClient WiFiServer::available(byte*)': ...\libraries\ESP8266WiFi\src\WiFiServer.cpp:120:55: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 120 | tcp_backlog_accepted(_unclaimed->getPCB()); | ^
This commit is contained in:
parent
456640012c
commit
0f58a9009c
@ -115,9 +115,10 @@ WiFiClient WiFiServer::available(byte* status) {
|
||||
WiFiClient result(_unclaimed);
|
||||
|
||||
// pcb can be null when peer has already closed the connection
|
||||
if (_unclaimed->getPCB())
|
||||
if (_unclaimed->getPCB()) {
|
||||
// give permission to lwIP to accept one more peer
|
||||
tcp_backlog_accepted(_unclaimed->getPCB());
|
||||
}
|
||||
|
||||
_unclaimed = _unclaimed->next();
|
||||
result.setNoDelay(getNoDelay());
|
||||
|
Loading…
x
Reference in New Issue
Block a user