Skip to content
Snippets Groups Projects
Commit 1a849abf authored by Craig Tiller's avatar Craig Tiller
Browse files

Save some iterations

parent c80670fb
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ static void multipoll_with_poll_pollset_maybe_work(
pfds[0].revents = POLLOUT;
for (i = 0; i < h->fd_count; i++) {
int remove = grpc_fd_is_orphaned(h->fds[i]);
for (j = 0; j < h->del_count; j++) {
for (j = 0; !remove && j < h->del_count; j++) {
if (h->fds[i] == h->dels[j]) remove = 1;
}
if (remove) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment