mirror of
https://github.com/Tha14/toxic.git
synced 2026-01-10 06:43:22 +01:00
Fix some possible race conditions related to line printing
This commit is contained in:
@@ -928,7 +928,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);
|
||||
|
||||
Reference in New Issue
Block a user