mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-27 02:23:27 +01:00
need mutexes
This commit is contained in:
parent
7ae807002e
commit
44d524134f
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user