Skip to content

Commit e583c0d

Browse files
committed
PollSelector: return correct number of ready fds
1 parent 311ce8e commit e583c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/select.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ final class PollSelector : Selector
354354

355355
n++;
356356
}
357-
return ready_fds[0 .. num_fds];
357+
return ready_fds[0 .. n];
358358
}
359359

360360
private pollfd create_pollfd(socket_t fd, SelectEvent events)

0 commit comments

Comments
 (0)