Browse Source

Merge pull request #13355 from Chocobo1/allocate

Enable faster disk space allocation by default
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
8d57a6527b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/base/bittorrent/session.cpp

5
src/base/bittorrent/session.cpp

@ -1042,6 +1042,11 @@ void Session::initializeNativeSession()
pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true); pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true);
#endif #endif
#if (LIBTORRENT_VERSION_NUM > 20000)
// preserve the same behavior as in earlier libtorrent versions
pack.set_bool(lt::settings_pack::enable_set_file_valid_data, true);
#endif
loadLTSettings(pack); loadLTSettings(pack);
m_nativeSession = new lt::session {lt::session_params {pack, {}}}; m_nativeSession = new lt::session {lt::session_params {pack, {}}};

Loading…
Cancel
Save