提交 dbfd6615 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Delete RTC::TcpConnection if too many

上级 6c8d051d
...@@ -254,7 +254,7 @@ namespace RTC ...@@ -254,7 +254,7 @@ namespace RTC
// Allow just MaxTcpConnectionsPerServer. // Allow just MaxTcpConnectionsPerServer.
if (GetNumConnections() > MaxTcpConnectionsPerServer) if (GetNumConnections() > MaxTcpConnectionsPerServer)
connection->Close(); delete connection;
} }
void TcpServer::UserOnTcpConnectionClosed(::TcpConnection* connection, bool isClosedByPeer) void TcpServer::UserOnTcpConnectionClosed(::TcpConnection* connection, bool isClosedByPeer)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论