on posix also no accept() on the tty line

This commit is contained in:
folkert van heusden 2024-05-10 09:54:58 +02:00
parent b7ae923e15
commit 860ff64fed
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -132,12 +132,10 @@ void dc11::operator()()
// client session // client session
pfds[dc11_n_lines + i].fd = INVALID_SOCKET; pfds[dc11_n_lines + i].fd = INVALID_SOCKET;
pfds[dc11_n_lines + i].events = POLLIN; pfds[dc11_n_lines + i].events = POLLIN;
#if defined(ESP32)
if (i == serial_line) { // prevent accept() on this socket if (i == serial_line) { // prevent accept() on this socket
pfds[i].fd = INVALID_SOCKET; pfds[i].fd = INVALID_SOCKET;
continue; continue;
} }
#endif
// listen on port // listen on port
int port = base_port + i + 1; int port = base_port + i + 1;