1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Corrected a possible race codition

This commit is contained in:
Philipp Schafft 2018-09-20 14:13:50 +00:00
parent 9d120d126f
commit 5df028691a

View File

@ -271,7 +271,9 @@ void yp_recheck_config (ice_config_t *config)
}
}
thread_rwlock_unlock (&yp_lock);
thread_rwlock_wlock(&yp_lock);
yp_update = 1;
thread_rwlock_unlock(&yp_lock);
}