mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-27 16:26:46 +02:00
Fix some possible race conditions related to line printing
This commit is contained in:
@ -561,8 +561,11 @@ void refresh_inactive_windows(void)
|
||||
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
|
||||
ToxWindow *a = &windows[i];
|
||||
|
||||
if (a->active && a != active_window && !a->is_friendlist)
|
||||
if (a->active && a != active_window && !a->is_friendlist) {
|
||||
pthread_mutex_lock(&Winthread.lock);
|
||||
line_info_print(a);
|
||||
pthread_mutex_unlock(&Winthread.lock);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user