From: brain Date: Thu, 28 Apr 2005 16:47:06 +0000 (+0000) Subject: Fixed dodgy poll() X-Git-Tag: v2.0.23~10426 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e85c4b09ab8a320607076b54fb75d1f0e3fb636c;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed dodgy poll() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1243 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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;