mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 22:59:21 +00:00
Up and down on the download list working.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@250 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+7
-2
@@ -1,6 +1,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <ncurses.h>
|
||||
#include <sigc++/bind.h>
|
||||
#include <torrent/torrent.h>
|
||||
@@ -34,9 +35,13 @@ Poll::poll() {
|
||||
|
||||
m_maxFd = select(m_maxFd, &m_readSet, &m_writeSet, &m_exceptSet, &timeout);
|
||||
|
||||
if (m_maxFd == EINTR)
|
||||
if (m_maxFd >= 0)
|
||||
return;
|
||||
|
||||
else if (errno == EINTR)
|
||||
m_slotSelectInterrupted();
|
||||
else if (m_maxFd < 0)
|
||||
|
||||
else if (errno < 0)
|
||||
throw std::runtime_error("Poll::work(): select error");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user