mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Prevent libtorrent from crashing when 'announce' is not in the tracker
url.
This commit is contained in:
parent
4bd88df4de
commit
b210a81967
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ namespace libtorrent
|
|||
std::size_t pos = url.find("announce");
|
||||
if (pos == std::string::npos)
|
||||
{
|
||||
fail(-1, ("scrape is not available on url: '"
|
||||
+ req.url +"'").c_str());
|
||||
//fail(-1, ("scrape is not available on url: '"
|
||||
// + req.url +"'").c_str());
|
||||
return;
|
||||
}
|
||||
url.replace(pos, 8, "scrape");
|
||||
|
|
Loading…
Add table
Reference in a new issue