mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 04:19:39 +00:00
forgot to init the vector
This commit is contained in:
1 parent
cf86b39848
commit
bcd9f5cdae
1 file changed
+7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user