13
0

Prevent excessive latency recomputations

Session::update_latency() may be called multiple times with
the process-lock being held.
This commit is contained in:
Robin Gareus 2020-04-27 16:31:40 +02:00
parent d6242f35f5
commit 09f9cd377d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -7020,6 +7020,9 @@ Session::auto_connect_thread_run ()
*/
while (g_atomic_int_and (&_latency_recompute_pending, 0)) {
update_latency_compensation (true, false);
if (g_atomic_int_get (&_latency_recompute_pending)) {
Glib::usleep (1000);
}
}
}