Properly terminate the XMPP connection

This ensures the XMPP connection gets properly terminated when leaving
the lobby.

Fixes #7504
This commit is contained in:
Dunedan
2025-04-05 08:01:18 +02:00
parent 4d323177b8
commit 312c6e8165
+2
View File
@@ -169,6 +169,8 @@ XmppClient::XmppClient(const ScriptInterface* scriptInterface, const std::string
*/
XmppClient::~XmppClient()
{
this->disconnect();
DbgXMPP("XmppClient destroyed");
delete m_registration;
delete m_mucRoom;