reverted accidental check-in

This commit is contained in:
Arvid Norberg 2010-01-05 13:00:04 +00:00
parent 11cd7af4e7
commit 08444d0c2f
1 changed files with 5 additions and 10 deletions

View File

@ -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;