web seed fix

This commit is contained in:
Arvid Norberg 2011-11-25 10:56:33 +00:00
parent 6aba061cb8
commit faf11fc27d
2 changed files with 2 additions and 3 deletions

View File

@ -96,7 +96,7 @@ namespace libtorrent
void on_receive(error_code const& error
, std::size_t bytes_transferred);
std::string const& url() const { return m_original_url; }
std::string const& url() const { return m_url; }
virtual void get_specific_peer_info(peer_info& p) const;
virtual void disconnect(error_code const& ec, int error = 0);
@ -117,7 +117,6 @@ namespace libtorrent
std::deque<int> m_file_requests;
std::string m_url;
std::string m_original_url;
// this is used for intermediate storage of pieces
// that are received in more than one HTTP response

View File

@ -378,7 +378,7 @@ namespace libtorrent
+ (" " + m_parser.message());
if (m_ses.m_alerts.should_post<url_seed_alert>())
{
m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), url()
m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), m_url
, error_msg));
}
m_statistics.received_bytes(0, bytes_transferred);