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;