conncheck: add a couple of switch case fallthroughs
authorFabrice Bellet <fabrice@bellet.info>
Sun, 19 Apr 2020 15:16:05 +0000 (17:16 +0200)
committerFabrice Bellet <fabrice@bellet.info>
Wed, 6 May 2020 17:23:38 +0000 (19:23 +0200)
agent/conncheck.c

index 7770376..5842c45 100644 (file)
@@ -1421,11 +1421,8 @@ static gboolean priv_conn_keepalive_retransmissions_tick_agent_locked (
 
       nice_debug ("Agent %p : Retransmitting keepalive conncheck",
           agent);
-      agent_timeout_add_with_context (agent,
-          &pair->keepalive.tick_source,
-          "Pair keepalive", stun_timer_remainder (&pair->keepalive.timer),
-          priv_conn_keepalive_retransmissions_tick_agent_locked, pair);
-      break;
+
+      G_GNUC_FALLTHROUGH;
     case STUN_USAGE_TIMER_RETURN_SUCCESS:
       agent_timeout_add_with_context (agent,
           &pair->keepalive.tick_source,
@@ -1794,10 +1791,7 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick_agent_locked (
       agent_socket_send (cand->nicesock, &cand->server,
           stun_message_length (&cand->stun_message), (gchar *)cand->stun_buffer);
 
-      agent_timeout_add_with_context (agent, &cand->tick_source,
-          "Candidate TURN refresh", stun_timer_remainder (&cand->timer),
-          priv_turn_allocate_refresh_retransmissions_tick_agent_locked, cand);
-      break;
+      G_GNUC_FALLTHROUGH;
     case STUN_USAGE_TIMER_RETURN_SUCCESS:
       agent_timeout_add_with_context (agent, &cand->tick_source,
           "Candidate TURN refresh", stun_timer_remainder (&cand->timer),