attempt to fix crash in udp_socket when using a broken socks5 proxy

This commit is contained in:
Arvid Norberg
2011-05-14 22:25:49 +00:00
parent e2f1bcaf21
commit 801d3637b9
3 changed files with 51 additions and 0 deletions

View File

@@ -292,6 +292,8 @@ namespace libtorrent
for (std::list<entry>::iterator i = timed_out.begin()
, end(timed_out.end()); i != end; ++i)
{
TORRENT_ASSERT(i->connecting);
TORRENT_ASSERT(i->ticket != -1);
TORRENT_TRY {
i->on_timeout();
} TORRENT_CATCH(std::exception&) {}