improper unlocking of mlogqs when writing queued logs
This commit is contained in:
parent
8b48f9f902
commit
b56ac0d75b
@ -257,11 +257,11 @@ static void WriteQueuedLogs(int count) {
|
|||||||
tmp = logq;
|
tmp = logq;
|
||||||
logq = logq->next;
|
logq = logq->next;
|
||||||
|
|
||||||
mlogqs.releasewritelock();
|
|
||||||
|
|
||||||
free(tmp->text);
|
free(tmp->text);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mlogqs.releasewritelock();
|
||||||
}
|
}
|
||||||
|
|
||||||
ThreadReturnType LogLoop(void *args) {
|
ThreadReturnType LogLoop(void *args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user