Conditional jump in function AddClient() from pollmanager FIXED
This commit is contained in:
parent
b188655ea8
commit
d29a09da59
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ void PollManager::pollLoop(int server_fd, std::vector<int> &newClients, std::vec
|
|||
void PollManager::addClient(short unsigned fd)
|
||||
{
|
||||
struct pollfd pfd;
|
||||
std::memset(&pfd, 0, sizeof(pfd));
|
||||
pfd.fd = fd;
|
||||
pfd.events = POLLIN;
|
||||
_fds.push_back(pfd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue