mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 15:49:20 +00:00
Listing peers.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@252 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+2
-2
@@ -33,10 +33,10 @@ Poll::poll() {
|
||||
|
||||
timeval timeout = {t / 1000000, t % 1000000};
|
||||
|
||||
m_maxFd = select(m_maxFd, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
|
||||
m_maxFd = select(m_maxFd + 1, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
|
||||
|
||||
if (m_maxFd >= 0)
|
||||
return;
|
||||
work();
|
||||
|
||||
else if (errno == EINTR)
|
||||
m_slotSelectInterrupted();
|
||||
|
||||
Reference in New Issue
Block a user