]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed dodgy poll()
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 28 Apr 2005 16:47:06 +0000 (16:47 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 28 Apr 2005 16:47:06 +0000 (16:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1243 e03df62e-2008-0410-955e-edbf42e46eb7

src/connection.cpp

index 1beaefbf702367bb05e5063d960a799cece8222f..36a4570ebf68347f1faddc3e12ebfcc5a4dcf26a 100644 (file)
@@ -476,7 +476,7 @@ bool connection::RecvPacket(std::deque<std::string> &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;