diff options
| -rw-r--r-- | sync.ha | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -156,6 +156,14 @@ export fn main() void = { }; if (pollfds[1].revents & poll::event::POLLIN != 0) { signal::read(pollfds[1].fd)!; + for (let j = 2z; j < len(pollfds); j += 1) { + let s = pollfds[j].fd; + if (s != -1) { + log::printfln("Closing connection to client at index {} with fd {}", j, s: int); + net::close(s)!; + pollfds[j].fd = -1; + }; + }; break; }; for (let j = 2z; j < len(pollfds); j += 1) { |
