From 3f572d43ef938fb1a1a04372f967b8727b0d70ef Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 11 Dec 2011 03:32:53 +0000 Subject: [PATCH] support force started in client_test --- examples/client_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index c123a225c..c6e828523 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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);