From e299288367774df58a5a633a0a6667358299689b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 20 Sep 2009 21:32:20 +0000 Subject: [PATCH] - Some torrents were pausing for no reason --- Changelog | 1 + src/bittorrent.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index 77e1a3ac5..6420802e3 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ * Unknown - Christophe Dumez - v1.5.2 + - BUGFIX: Some torrents were pausing for no reason - I18N: Updated Korean translation * Thu Sep 7 2009 - Christophe Dumez - v1.5.1 diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index eae00da87..ffe0a359c 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -67,7 +67,7 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause( qDebug("Peer ID: %s", fingerprint("UT", 1, 8, 4, 0).to_string().c_str()); } else { s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0); - qDebug("Peer ID: ", fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0).to_string().c_str()); + qDebug("Peer ID: %s", fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0).to_string().c_str()); } // Set severity level of libtorrent session @@ -1300,13 +1300,13 @@ void bittorrent::readAlerts() { addConsoleMessage(tr("Couldn't listen on any of the given ports."), QString::fromUtf8("red")); //emit portListeningFailure(); } - else if (torrent_paused_alert* p = dynamic_cast(a.get())) { + /*else if (torrent_paused_alert* p = dynamic_cast(a.get())) { QTorrentHandle h(p->handle); qDebug("Received a torrent_paused_alert for %s", h.hash().toLocal8Bit().data()); if(h.is_valid()) { emit torrentPaused(h); } - } + }*/ else if (tracker_error_alert* p = dynamic_cast(a.get())) { // Level: fatal QTorrentHandle h(p->handle);