mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Initialize session with session_params
class
The old way of initialization is deprecated in libtorrent 2.0.
This commit is contained in:
parent
554eab50bb
commit
2fd69a21b0
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ void Session::initializeNativeSession()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
loadLTSettings(pack);
|
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("Peer ID: ") + QString::fromStdString(peerId));
|
||||||
LogMsg(tr("HTTP User-Agent is '%1'").arg(USER_AGENT));
|
LogMsg(tr("HTTP User-Agent is '%1'").arg(USER_AGENT));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue