1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 09:46:35 +02:00

need mutexes

This commit is contained in:
Jfreegman
2014-06-30 11:42:11 -04:00
parent 7ae807002e
commit 44d524134f

View File

@ -462,8 +462,11 @@ static void load_data(Tox *m, char *path)
static void do_toxic(Tox *m, ToxWindow *prompt) static void do_toxic(Tox *m, ToxWindow *prompt)
{ {
pthread_mutex_lock(&Winthread.lock);
do_connection(m, prompt); do_connection(m, prompt);
do_file_senders(m); do_file_senders(m);
pthread_mutex_unlock(&Winthread.lock);
tox_do(m); /* main tox-core loop */ tox_do(m); /* main tox-core loop */
} }