* Scheduled tasks, like hash checking, didn't get called when

downloading with curl on epoll unless sockets triggered events.

* Checking whetever we're interested in a peer's pieces wasn't
finished, doh.

* Don't use shorter timeout for "stopped" tracker request, the client
now makes sure it shuts down within 5 seconds.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@577 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-10-07 20:01:38 +00:00
parent 65573ec1ee
commit 881f515d03
17 changed files with 182 additions and 119 deletions
+9 -7
View File
@@ -40,9 +40,11 @@
#include <sigc++/bind.h>
#include <torrent/torrent.h>
#include "display/window_statusbar.h"
#include "input/manager.h"
#include "control.h"
#include "download_list.h"
#include "display/window_statusbar.h"
#include "root.h"
@@ -62,10 +64,10 @@ Root::init(Control* c) {
m_control = c;
setup_keys();
m_windowStatusbar = new WStatusbar(&m_control->get_core());
m_windowStatusbar = new WStatusbar(m_control->core());
m_downloadList = new DownloadList(m_control);
m_control->get_display().push_back(m_windowStatusbar);
m_control->display()->push_back(m_windowStatusbar);
m_downloadList->activate();
// m_downloadList->slot_open_uri(sigc::mem_fun(m_control->get_core(), &core::Manager::insert));
@@ -79,18 +81,18 @@ Root::cleanup() {
if (m_downloadList->is_active())
m_downloadList->disable();
m_control->get_display().erase(m_windowStatusbar);
m_control->display()->erase(m_windowStatusbar);
delete m_downloadList;
delete m_windowStatusbar;
m_control->get_input().erase(&m_bindings);
m_control->input()->erase(&m_bindings);
m_control = NULL;
}
void
Root::setup_keys() {
m_control->get_input().push_back(&m_bindings);
m_control->input()->push_back(&m_bindings);
m_bindings['a'] = sigc::bind(sigc::mem_fun(*this, &Root::receive_up_throttle), 1);
m_bindings['z'] = sigc::bind(sigc::mem_fun(*this, &Root::receive_up_throttle), -1);
@@ -106,7 +108,7 @@ Root::setup_keys() {
m_bindings['D'] = sigc::bind(sigc::mem_fun(*this, &Root::receive_down_throttle), 50);
m_bindings['C'] = sigc::bind(sigc::mem_fun(*this, &Root::receive_down_throttle), -50);
m_bindings[KEY_RESIZE] = sigc::mem_fun(m_control->get_display(), &display::Manager::adjust_layout);
m_bindings[KEY_RESIZE] = sigc::mem_fun(*m_control->display(), &display::Manager::adjust_layout);
m_bindings['\x11'] = sigc::mem_fun(*m_control, &Control::receive_shutdown);
}