mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Fix compilation with libtorrent 1.x.x v2
This commit is contained in:
@@ -161,7 +161,7 @@ void TorrentSpeedMonitor::getSamples()
|
||||
std::vector<torrent_handle>::const_iterator itend = torrents.end();
|
||||
for ( ; it != itend; ++it) {
|
||||
try {
|
||||
#if LIBTORRENT_VERSION_MINOR > 15 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||
torrent_status st = it->status(0x0);
|
||||
if (!st.paused) {
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user