[MOD] Hash-based name conflict resolution

Still basic, but should prevent basic name issues.
This commit is contained in:
LDA 2024-08-18 16:11:12 +02:00
commit 59cbd8b22d
11 changed files with 147 additions and 109 deletions

View file

@ -199,8 +199,11 @@ XMPPEndCompStream(XMPPComponent *comp)
{
return;
}
pthread_mutex_destroy(&comp->write_lock);
pthread_mutex_lock(&comp->write_lock);
StreamClose(comp->stream);
comp->stream = NULL;
pthread_mutex_unlock(&comp->write_lock);
pthread_mutex_destroy(&comp->write_lock);
Free(comp->host);
Free(comp);
}