fix crash

This commit is contained in:
Martin Rotter 2023-12-11 08:05:04 +01:00
parent 661bd09d0a
commit a1d483dfe4
1 changed files with 2 additions and 2 deletions

View File

@ -574,10 +574,10 @@ void WebFactory::startApiServer() {
void WebFactory::stopApiServer() { void WebFactory::stopApiServer() {
if (m_apiServer != nullptr) { if (m_apiServer != nullptr) {
qDebugNN << LOGSEC_NETWORK << "Stopped API server:" << QUOTE_W_SPACE_DOT(m_apiServer->listenAddressPort());
delete m_apiServer; delete m_apiServer;
m_apiServer = nullptr; m_apiServer = nullptr;
qDebugNN << LOGSEC_NETWORK << "Stopped API server:" << QUOTE_W_SPACE_DOT(m_apiServer->listenAddressPort());
} }
} }