mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:53:28 +01:00
should fix the high cpu usage issue
This commit is contained in:
parent
da65ba4e8d
commit
d881312e3e
@ -178,4 +178,4 @@ void new_filesender_thread(ToxWindow *self, Tox *m, uint8_t *path, int path_len,
|
||||
|
||||
if (pthread_mutex_init(&file_senders[i].lock, NULL) != 0)
|
||||
exit_toxic_err("failed in new_filesende", FATALERR_MUTEX_INIT);
|
||||
}
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ int main(int argc, char *argv[])
|
||||
while (true) {
|
||||
update_unix_time();
|
||||
do_toxic(m, prompt);
|
||||
usleep(10000);
|
||||
usleep(40000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user