support force started in client_test

This commit is contained in:
Arvid Norberg 2011-12-11 03:32:53 +00:00
parent 7ee42393a5
commit 3f572d43ef
1 changed files with 8 additions and 0 deletions

View File

@ -1665,6 +1665,14 @@ int main(int argc, char* argv[])
}
}
// toggle force-start
if (c == 'k' && !handles.empty())
{
torrent_status const& ts = get_active_torrent(handles);
ts.handle.auto_managed(!ts.auto_managed);
if (ts.auto_managed && ts.paused) ts.handle.resume();
}
if (c == 'c' && !handles.empty())
{
torrent_status const& ts = get_active_torrent(handles);