Commit 692b7da9 authored by Scott Vokes's avatar Scott Vokes
Browse files

Since sockets are deleted from front-of-array, just track the countdown.

parent 0ffd944a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ void listener_free(struct listener *l) {
            }
        }

        for (int i = 0; i < l->tracked_fds; i++) {
        while (l->tracked_fds > 0) {
            /* Remove off the front to stress remove_socket. */
            remove_socket(l, l->fds[0].fd);
        }