Browse Source

Initialize session with `session_params` class

The old way of initialization is deprecated in libtorrent 2.0.
adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
2fd69a21b0
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -1043,7 +1043,7 @@ void Session::initializeNativeSession() @@ -1043,7 +1043,7 @@ void Session::initializeNativeSession()
#endif
loadLTSettings(pack);
m_nativeSession = new lt::session {pack, lt::session_flags_t {0}};
m_nativeSession = new lt::session {lt::session_params {pack, {}}};
LogMsg(tr("Peer ID: ") + QString::fromStdString(peerId));
LogMsg(tr("HTTP User-Agent is '%1'").arg(USER_AGENT));

Loading…
Cancel
Save