mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
libtorrent 'endpoint not connected' exception fix
This commit is contained in:
parent
188af2eee3
commit
04cd6fb67b
@ -599,8 +599,14 @@ namespace libtorrent { namespace detail
|
|||||||
for (session_impl::connection_map::iterator i
|
for (session_impl::connection_map::iterator i
|
||||||
= m_connections.begin(); i != m_connections.end();)
|
= m_connections.begin(); i != m_connections.end();)
|
||||||
{
|
{
|
||||||
tcp::endpoint sender = i->first->remote_endpoint();
|
tcp::endpoint sender;
|
||||||
if (m_ip_filter.access(sender.address()) & ip_filter::blocked)
|
try {
|
||||||
|
sender = i->first->remote_endpoint();
|
||||||
|
} catch (asio::system_error& e) {
|
||||||
|
i++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (m_ip_filter.access(sender.address()) & ip_filter::blocked)
|
||||||
{
|
{
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING)
|
||||||
(*i->second->m_logger) << "*** CONNECTION FILTERED\n";
|
(*i->second->m_logger) << "*** CONNECTION FILTERED\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user