From 5e6bc5c87b27a8bce474f22eac32afe5a8a67469 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Wed, 15 Jun 2022 13:34:55 +0200 Subject: [PATCH] Run disconnection routine when client is being destroyed --- core/src/aoclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/aoclient.cpp b/core/src/aoclient.cpp index 7afeaff..9866b55 100644 --- a/core/src/aoclient.cpp +++ b/core/src/aoclient.cpp @@ -528,5 +528,6 @@ AOClient::AOClient(Server *p_server, NetworkSocket *socket, QObject *parent, int AOClient::~AOClient() { + clientDisconnected(); m_socket->deleteLater(); }