From e85c4b09ab8a320607076b54fb75d1f0e3fb636c Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 28 Apr 2005 16:47:06 +0000 Subject: Fixed dodgy poll() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1243 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.cpp b/src/connection.cpp index 1beaefbf7..36a4570eb 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -476,7 +476,7 @@ bool connection::RecvPacket(std::deque &messages, char* recvhost) // check if theres any data on this socket // if not, continue onwards to the next. pollfd polls; - polls.fd = this->fd; + polls.fd = this->connectors[i].GetDescriptor(); polls.events = POLLIN; int ret = poll(&polls,1,1); if (ret <= 0) continue; -- cgit v1.2.3