Prevent excessive latency recomputations
Session::update_latency() may be called multiple times with the process-lock being held.
This commit is contained in:
parent
d6242f35f5
commit
09f9cd377d
@ -7020,6 +7020,9 @@ Session::auto_connect_thread_run ()
|
|||||||
*/
|
*/
|
||||||
while (g_atomic_int_and (&_latency_recompute_pending, 0)) {
|
while (g_atomic_int_and (&_latency_recompute_pending, 0)) {
|
||||||
update_latency_compensation (true, false);
|
update_latency_compensation (true, false);
|
||||||
|
if (g_atomic_int_get (&_latency_recompute_pending)) {
|
||||||
|
Glib::usleep (1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user