forked from premiere/premiere-libtorrent
made client test use the default file storage
This commit is contained in:
parent
9a7e26b280
commit
4f6c77e1d5
|
@ -471,7 +471,7 @@ void add_torrent(libtorrent::session& ses
|
|||
|
||||
torrent_handle h = ses.add_torrent(t, save_path, resume_data
|
||||
, compact_mode ? storage_mode_compact : storage_mode_sparse, false
|
||||
, mapped_storage_constructor);
|
||||
); //, mapped_storage_constructor);
|
||||
handles.insert(std::make_pair(
|
||||
monitored_dir?std::string(torrent):std::string(), h));
|
||||
|
||||
|
@ -872,7 +872,7 @@ int main(int ac, char* av[])
|
|||
|
||||
torrent_handle h = ses.add_torrent(std::string(what[2]).c_str()
|
||||
, info_hash, 0, save_path, entry(), compact_allocation_mode ? storage_mode_compact
|
||||
: storage_mode_sparse, false, mapped_storage_constructor);
|
||||
: storage_mode_sparse, false); // , mapped_storage_constructor);
|
||||
handles.insert(std::make_pair(std::string(), h));
|
||||
|
||||
h.set_max_connections(50);
|
||||
|
|
Loading…
Reference in New Issue