From 08444d0c2fbd27ff2481e3e264d340b124a3232e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 5 Jan 2010 13:00:04 +0000 Subject: [PATCH] reverted accidental check-in --- examples/client_test.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 1d24ec249..b97d9425f 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -135,11 +135,11 @@ bool sleep_and_input(char* c, int sleep) FD_ZERO(&set); FD_SET(0, &set); timeval tv = {sleep, 0}; -// if (select(1, &set, 0, 0, &tv) > 0) -// { -// *c = getc(stdin); -// return true; -// } + if (select(1, &set, 0, 0, &tv) > 0) + { + *c = getc(stdin); + return true; + } libtorrent::sleep(500); return false; } @@ -753,11 +753,6 @@ int main(int argc, char* argv[]) using namespace libtorrent; session_settings settings; - { - mutex m; - mutex::scoped_lock l(m); - } - settings.user_agent = "client_test/" LIBTORRENT_VERSION; settings.auto_upload_slots_rate_based = true; //settings.announce_to_all_trackers = true;