1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:36:46 +02:00

Fix some possible race conditions related to line printing

This commit is contained in:
Jfreegman
2015-06-30 22:40:45 -04:00
parent 312d0c3f42
commit 84a0276668
4 changed files with 13 additions and 1 deletions

View File

@ -923,7 +923,10 @@ static void chat_onDraw(ToxWindow *self, Tox *m)
ChatContext *ctx = self->chatwin;
pthread_mutex_lock(&Winthread.lock);
line_info_print(self);
pthread_mutex_unlock(&Winthread.lock);
wclear(ctx->linewin);
curs_set(1);