Cleaned up the API.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@456 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-07 22:20:03 +00:00
parent 2e7333792f
commit 693ce38317
9 changed files with 52 additions and 31 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ Poll::poll(utils::Timer timeout) {
m_maxFd = std::max(m_maxFd, n);
}
timeval t = std::min(timeout, utils::Timer(torrent::get(torrent::TIME_SELECT))).tval();
timeval t = std::min(timeout, utils::Timer(torrent::get_next_timeout())).tval();
errno = 0;
m_maxFd = select(m_maxFd + 1, m_readSet, m_writeSet, m_exceptSet, &t);