|
@@ -1131,9 +1131,7 @@ int create_relay_ioa_sockets(ioa_engine_handle e, ioa_socket_handle client_s, in
|
|
if (!rtcp_map_put(e->map_rtcp, *out_reservation_token, *rtcp_s)) {
|
|
if (!rtcp_map_put(e->map_rtcp, *out_reservation_token, *rtcp_s)) {
|
|
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "%s: cannot update RTCP map\n", __FUNCTION__);
|
|
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "%s: cannot update RTCP map\n", __FUNCTION__);
|
|
IOA_CLOSE_SOCKET(*rtp_s);
|
|
IOA_CLOSE_SOCKET(*rtp_s);
|
|
- if (rtcp_s) {
|
|
|
|
- IOA_CLOSE_SOCKET(*rtcp_s);
|
|
|
|
- }
|
|
|
|
|
|
+ IOA_CLOSE_SOCKET(*rtcp_s);
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
}
|
|
}
|