Properly initialize the main poll object.

This commit is contained in:
rakshasa
2012-02-14 13:38:27 +09:00
parent d4cbe5294d
commit 7fe2fb1584
+1 -2
View File
@@ -206,9 +206,8 @@ main(int argc, char** argv) {
SignalHandler::set_handler(SIGUSR1, sigc::ptr_fun(&do_nothing));
torrent::Poll::slot_create_poll() = std::tr1::bind(&core::create_poll);
torrent::initialize();
torrent::main_thread()->init_thread();
torrent::initialize();
torrent::main_thread()->slot_do_work() = tr1::bind(&client_perform);
torrent::main_thread()->slot_next_timeout() = tr1::bind(&client_next_timeout, control);