report ENOFILE to peer connection disconnect function when running out of file descriptors

This commit is contained in:
Arvid Norberg
2012-03-04 10:54:55 +00:00
parent 0d29dbbfbe
commit 769c985e78

View File

@@ -2532,8 +2532,7 @@ namespace aux {
if (i != m_torrents.end())
{
error_code ec;
i->second->disconnect_peers(1, ec);
i->second->disconnect_peers(1, e);
}
m_settings.connections_limit = m_connections.size();