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
No known key found for this signature in database
GPG key ID: 885B16854284E0B2

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;