mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
emulation on host: avoid closing STDIN (#8577)
- avoid closing STDIN - less verbose during compilation - better handling user directories - missing str{,n}case_P declarations
This commit is contained in:
@ -129,7 +129,7 @@ bool WiFiServer::hasClient()
|
||||
|
||||
void WiFiServer::close()
|
||||
{
|
||||
if (pcb2int(_listen_pcb) >= 0)
|
||||
if (pcb2int(_listen_pcb) >= 3) // 0=stdin 1=stdout 2=stderr
|
||||
::close(pcb2int(_listen_pcb));
|
||||
_listen_pcb = int2pcb(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user