diff options
| author | JosJuice <josjuice@gmail.com> | 2023-08-16 22:16:50 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-08-17 19:19:25 +0200 |
| commit | 2b17e89336ed09db7298ca66a7c697a4db9d3cf9 (patch) | |
| tree | f60f799da15823b1a2861170644b8036cb9d6234 /Source/Core/Common/Config/Config.cpp | |
| parent | 71ce8bb6f00f4d1cbc1012270d6daefdbda4254d (diff) | |
Config: Don't clear callbacks on shutdown
This fixes a problem that started happening in CoreTimingTest after the
previous commit. CPUThreadConfigCallback registers a Config callback
only once per run of the process, but CoreTimingTest calls
Config::Shutdown after each test, and Config::Shutdown was clearing all
callbacks, preventing the callback from running after that.
Diffstat (limited to 'Source/Core/Common/Config/Config.cpp')
| -rw-r--r-- | Source/Core/Common/Config/Config.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/Core/Common/Config/Config.cpp b/Source/Core/Common/Config/Config.cpp index ff3a8c6783..4db249d8eb 100644 --- a/Source/Core/Common/Config/Config.cpp +++ b/Source/Core/Common/Config/Config.cpp @@ -138,7 +138,6 @@ void Shutdown() WriteLock lock(s_layers_rw_lock); s_layers.clear(); - s_callbacks.clear(); } void ClearCurrentRunLayer() |
