Cleanup OnDisconnect client case slightly

This commit is contained in:
puvvadar
2021-06-15 17:46:51 -07:00
parent cf5641a211
commit 2a6009c94b
@@ -647,9 +647,10 @@ namespace Multiplayer
AZStd::string reasonString = ToString(reason);
AZLOG_INFO("%s due to %s from remote address: %s", endpointString, reasonString.c_str(), connection->GetRemoteAddress().GetString().c_str());
if (GetAgentType() == MultiplayerAgentType::Client && connection->GetConnectionRole() == ConnectionRole::Connector)
// The client is disconnecting
if (GetAgentType() == MultiplayerAgentType::Client)
{
// The client is disconnecting
AZ_Assert(connection->GetConnectionRole() == ConnectionRole::Connector, "Client connection role should only ever be Connector");
m_clientDisconnectedEvent.Signal();
}