Commit ce1f1aea authored by Youness Alaoui's avatar Youness Alaoui

no more need for media_after_tick, useless and doesn't help much

parent 9c611354
......@@ -1566,7 +1566,6 @@ nice_agent_send (
sock = component->selected_pair.local->sockptr;
addr = &component->selected_pair.remote->addr;
if (nice_socket_send (sock, addr, len, buf)) {
component->media_after_tick = TRUE;
ret = len;
}
goto done;
......
......@@ -100,8 +100,6 @@ struct _Component
GList *turn_servers; /**< List of TURN servers */
CandidatePair selected_pair; /**< independent from checklists,
see ICE 11.1. "Sending Media" (ID-19) */
gboolean media_after_tick; /**< true if media received since last
keepalive tick */
NiceCandidate *restart_candidate; /**< for storing active remote candidate during a restart */
NiceAgentRecvFunc g_source_io_cb; /**< function called on io cb */
gpointer data; /**< data passed to the io function */
......
......@@ -521,8 +521,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
Stream *stream = i->data;
for (j = stream->components; j; j = j->next) {
Component *component = j->data;
if (component->selected_pair.local != NULL &&
component->media_after_tick != TRUE) {
if (component->selected_pair.local != NULL) {
CandidatePair *p = &component->selected_pair;
struct sockaddr sockaddr;
......@@ -609,7 +608,6 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
++errors;
}
}
component->media_after_tick = FALSE;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment