mgcp_network: Unregister osmo_fd before closing fd
(cherry picked from commit 6c303664f5
)
Change-Id: Id03011a11be17e9c0a53b01444754dd633232d2e
This commit is contained in:
parent
342a9a9418
commit
6087326beb
|
@ -1676,14 +1676,14 @@ int mgcp_bind_net_rtp_port(struct mgcp_endpoint *endp, int rtp_port,
|
|||
void mgcp_free_rtp_port(struct mgcp_rtp_end *end)
|
||||
{
|
||||
if (end->rtp.fd != -1) {
|
||||
osmo_fd_unregister(&end->rtp);
|
||||
close(end->rtp.fd);
|
||||
end->rtp.fd = -1;
|
||||
osmo_fd_unregister(&end->rtp);
|
||||
}
|
||||
|
||||
if (end->rtcp.fd != -1) {
|
||||
osmo_fd_unregister(&end->rtcp);
|
||||
close(end->rtcp.fd);
|
||||
end->rtcp.fd = -1;
|
||||
osmo_fd_unregister(&end->rtcp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue