fix trimming of announce urls

This commit is contained in:
Arvid Norberg 2010-02-12 17:11:37 +00:00
parent b12b3ff105
commit ef48784cbd
1 changed files with 1 additions and 1 deletions

View File

@ -966,11 +966,11 @@ namespace libtorrent
for (int k = 0, end(tier->list_size()); k < end; ++k) for (int k = 0, end(tier->list_size()); k < end; ++k)
{ {
announce_entry e(tier->list_string_value_at(k)); announce_entry e(tier->list_string_value_at(k));
e.trim();
if (e.url.empty()) continue; if (e.url.empty()) continue;
e.tier = j; e.tier = j;
e.fail_limit = 0; e.fail_limit = 0;
e.source = announce_entry::source_torrent; e.source = announce_entry::source_torrent;
e.trim();
#if TORRENT_USE_I2P #if TORRENT_USE_I2P
if (is_i2p_url(e.url)) m_i2p = true; if (is_i2p_url(e.url)) m_i2p = true;
#endif #endif