Browse Source

- Fix crash when applying torrent files priorities (if libtorrent-rasterbar has debug enabled)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fe3a6b8b57
  1. 3
      src/bittorrent.cpp

3
src/bittorrent.cpp

@ -858,7 +858,8 @@ void bittorrent::loadFilesPriorities(QTorrentHandle &h) {
qDebug("Setting file piority to %d", priority); qDebug("Setting file piority to %d", priority);
v.push_back(priority); v.push_back(priority);
} }
h.prioritize_files(v); if(v.size() == (unsigned int)h.num_files())
h.prioritize_files(v);
} }
float bittorrent::getRealRatio(QString hash) const{ float bittorrent::getRealRatio(QString hash) const{

Loading…
Cancel
Save