report ENOFILE to peer connection disconnect function when running out of file descriptors
This commit is contained in:
@@ -2532,8 +2532,7 @@ namespace aux {
|
|||||||
|
|
||||||
if (i != m_torrents.end())
|
if (i != m_torrents.end())
|
||||||
{
|
{
|
||||||
error_code ec;
|
i->second->disconnect_peers(1, e);
|
||||||
i->second->disconnect_peers(1, ec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_settings.connections_limit = m_connections.size();
|
m_settings.connections_limit = m_connections.size();
|
||||||
|
Reference in New Issue
Block a user