conncheck: make a single ordinary check per callback
authorFabrice Bellet <fabrice@bellet.info>
Mon, 20 Apr 2020 21:21:17 +0000 (23:21 +0200)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Fri, 8 May 2020 16:24:55 +0000 (16:24 +0000)
This is more friendly with stun pacing.

agent/conncheck.c

index 151f148..d58478c 100644 (file)
@@ -786,6 +786,8 @@ timer_return_timeout:
     priv_conn_check_initiate (agent, pair);
     priv_print_conn_check_lists (agent, G_STRFUNC,
         ", initiated an ordinary connection check");
+    if (stun_sent)
+      *stun_sent = TRUE;
     return TRUE;
   }