fix crash
This commit is contained in:
parent
661bd09d0a
commit
a1d483dfe4
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user