Add GetActiveConnectionCount to IConnectionSet

This commit is contained in:
puvvadar
2021-06-21 11:46:16 -07:00
parent 04387be083
commit 8f5681ffdb
6 changed files with 43 additions and 1 deletions
@@ -700,7 +700,7 @@ namespace Multiplayer
// We avoid this for client server as the host itself is a user and non-transient dedicated servers
if (sv_isTransient && m_agentType == MultiplayerAgentType::DedicatedServer && connection->GetConnectionRole() == ConnectionRole::Acceptor)
{
if (m_networkInterface->GetConnectionSet().GetConnectionCount() == 0)
if (m_networkInterface->GetConnectionSet().GetActiveConnectionCount() == 0)
{
Terminate();
}