multiple telnet clients fix
This commit is contained in:
parent
e0ea250deb
commit
21fae59b89
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void wifi(void *p) {
|
|||
out += c;
|
||||
|
||||
if (!out.empty()) {
|
||||
for(size_t i=0; i<clients.size(); i++) {
|
||||
for(size_t i=0; i<clients.size();) {
|
||||
if (write(clients.at(i), out.c_str(), out.size()) == -1) {
|
||||
close(clients.at(i));
|
||||
clients.erase(clients.begin() + i);
|
||||
|
|
Loading…
Add table
Reference in a new issue