From 821854703b2eeafbc0fdd403c6f208ce68869db4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 30 Sep 2006 22:42:38 +0000 Subject: [PATCH] - Added connection limits for each torrent --- src/GUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI.cpp b/src/GUI.cpp index 8bf85d017..ae10e65c3 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1261,6 +1261,8 @@ void GUI::addTorrents(const QStringList& pathsList, bool fromScanDir, const QStr int row = DLListModel->rowCount(); // Adding files to bittorrent session h = s->add_torrent(t, fs::path(saveDir.path().toStdString()), resume_data); + h.set_max_connections(60); + h.set_max_uploads(-1); //qDebug("Added to session"); torrent_status torrentStatus = h.status(); DLListModel->setData(DLListModel->index(row, PROGRESS), QVariant((double)torrentStatus.progress));