[FIX/ADD] Fix deadlock and DMs.

This commit is contained in:
LDA 2024-06-30 17:15:03 +02:00
commit 59d5ad6780
7 changed files with 57 additions and 34 deletions

View file

@ -196,7 +196,7 @@ XMPPKillThread(XMPPComponent *jabber, char *killer)
return;
}
pthread_mutex_lock(&jabber->write_lock);
//pthread_mutex_lock(&jabber->write_lock);
from = StrConcat(3, killer, "@", jabber->host);
message = XMLCreateTag("message");
@ -211,7 +211,7 @@ XMPPKillThread(XMPPComponent *jabber, char *killer)
XMLFreeElement(message);
Free(from);
pthread_mutex_unlock(&jabber->write_lock);
//pthread_mutex_unlock(&jabber->write_lock);
}
bool
XMPPIsKiller(XMLElement *stanza)