mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qwaq] Fix a silly that caused qwaq-app to spawn twice
progs_t is very much most definitely NOT thread-safe (ie, two threads using the same progs_t). It was actually rather funny when I figured out what was going on to cause qwaq's universe to explode.
This commit is contained in:
parent
48c65b3363
commit
1e56a8efbc
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ main (int argc, char **argv)
|
|||
size_t count = thread_data.size;
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
if (thread_data.a[i]->pr && thread_data.a[i]->main_func) {
|
||||
start_progs_thread (thread_data.a[main_ind]);
|
||||
start_progs_thread (thread_data.a[i]);
|
||||
}
|
||||
}
|
||||
pthread_join (thread_data.a[main_ind]->thread_id, 0);
|
||||
|
|
Loading…
Reference in a new issue