fix potential illegal access

This commit is contained in:
John
2022-03-12 13:00:38 +01:00
parent dbe112d591
commit af6decf96c
+1 -1
View File
@@ -329,9 +329,9 @@ void Network::run() {
continue;
}
Connection* connection = new Connection(socket, isHttp, m_netQueue);
string ip = socket->getIP();
connection->start("connection");
m_connections.push_back(connection);
string ip = socket->getIP();
logInfo(lf_network, "[%05d] %s connection opened %s", connection->getID(), isHttp ? "HTTP" : "client",
ip.c_str());
}