Adjust cleanup logic to handle Session events more cohesively
This commit is contained in:
@@ -115,6 +115,10 @@ namespace AzNetworking
|
||||
|
||||
bool UdpConnection::Disconnect(DisconnectReason reason, TerminationEndpoint endpoint)
|
||||
{
|
||||
if (m_state == ConnectionState::Disconnected)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (m_state == ConnectionState::Disconnecting)
|
||||
{
|
||||
AZStd::string reasonString = ToString(reason);
|
||||
|
||||
Reference in New Issue
Block a user