From ef48784cbddf2eefb140da33ec9508aa291b108f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 12 Feb 2010 17:11:37 +0000 Subject: [PATCH] fix trimming of announce urls --- src/torrent_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 8305d8354..347add880 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -966,11 +966,11 @@ namespace libtorrent for (int k = 0, end(tier->list_size()); k < end; ++k) { announce_entry e(tier->list_string_value_at(k)); + e.trim(); if (e.url.empty()) continue; e.tier = j; e.fail_limit = 0; e.source = announce_entry::source_torrent; - e.trim(); #if TORRENT_USE_I2P if (is_i2p_url(e.url)) m_i2p = true; #endif