Browse Source

- Added a workaround fix for a bug in libtorrent regarding set_priority_up() function

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
25adf6b061
  1. 2
      src/bittorrent.cpp

2
src/bittorrent.cpp

@ -147,6 +147,8 @@ bool bittorrent::isQueueingEnabled() const { @@ -147,6 +147,8 @@ bool bittorrent::isQueueingEnabled() const {
void bittorrent::increaseDlTorrentPriority(QString hash) {
Q_ASSERT(queueingEnabled);
QTorrentHandle h = getTorrentHandle(hash);
// Check due to bug http://code.rasterbar.com/libtorrent/ticket/455
if(h.queue_position() > 0)
h.queue_position_up();
}

Loading…
Cancel
Save