mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
Todo etc.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@412 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+4
-1
@@ -37,6 +37,9 @@ namespace core {
|
||||
|
||||
void
|
||||
Poll::poll(utils::Timer timeout) {
|
||||
// Do we want to clear m_maxFd in torrent::mark?
|
||||
//m_maxFd = 0;
|
||||
|
||||
FD_ZERO(m_readSet);
|
||||
FD_ZERO(m_writeSet);
|
||||
FD_ZERO(m_exceptSet);
|
||||
@@ -46,7 +49,7 @@ Poll::poll(utils::Timer timeout) {
|
||||
torrent::mark(m_readSet, m_writeSet, m_exceptSet, &m_maxFd);
|
||||
|
||||
if (m_curlStack.is_busy()) {
|
||||
int n;
|
||||
int n = 0;
|
||||
|
||||
m_curlStack.fdset(m_readSet, m_writeSet, m_exceptSet, &n);
|
||||
m_maxFd = std::max(m_maxFd, n);
|
||||
|
||||
Reference in New Issue
Block a user