forgot to init the vector

This commit is contained in:
Tom Early committed 2024-05-13 15:59:05 -07:00
1 parent cf86b39848
commit bcd9f5cdae
1 file changed
+7
+7
View File
@@ -293,6 +293,13 @@ bool CTCClient::Initialize(const std::string &address, const std::string &module
m_Modules.assign(modules);
m_Port = port;
m_Pfd.resize(m_Modules.size());
for (auto &pf : m_Pfd)
{
pf.fd = -1;
pf.events = POLLIN;
}
std::cout << "Connecting to the TCP server..." << std::endl;
for (char c : modules)