fix potential illegal access
This commit is contained in:
@@ -329,9 +329,9 @@ void Network::run() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Connection* connection = new Connection(socket, isHttp, m_netQueue);
|
Connection* connection = new Connection(socket, isHttp, m_netQueue);
|
||||||
|
string ip = socket->getIP();
|
||||||
connection->start("connection");
|
connection->start("connection");
|
||||||
m_connections.push_back(connection);
|
m_connections.push_back(connection);
|
||||||
string ip = socket->getIP();
|
|
||||||
logInfo(lf_network, "[%05d] %s connection opened %s", connection->getID(), isHttp ? "HTTP" : "client",
|
logInfo(lf_network, "[%05d] %s connection opened %s", connection->getID(), isHttp ? "HTTP" : "client",
|
||||||
ip.c_str());
|
ip.c_str());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user