1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00

add srt_epoll_clear_usocks

This commit is contained in:
runner365 2020-02-12 09:54:07 +08:00
parent 548c918efb
commit 1a1d0e9267

View file

@ -187,9 +187,6 @@ void srt_server::on_work()
}
_handle_ptr->check_alive();
srs_info("srt server epoll get: ret=%d, rfd_num=%d, wfd_num=%d",
ret, rfd_num, wfd_num);
for (int index = 0; index < rfd_num; index++) {
SRT_SOCKSTATUS status = srt_getsockstate(read_fds[index]);
if (_server_socket == read_fds[index]) {
@ -208,6 +205,7 @@ void srt_server::on_work()
}
}
}
srt_epoll_clear_usocks(_pollid);
}
SrtServerAdapter::SrtServerAdapter()