Change PacketDispatchResult Pending to Skipped

Signed-off-by: puvvadar <puvvadar@amazon.com>
monroegm-disable-blank-issue-2
puvvadar 4 years ago
parent ae9dd275b4
commit aab06f687f

@ -13,7 +13,7 @@ namespace {{ xml.attrib['Name'] }}
{% if ('HandshakePacket' not in Packet.attrib) or (Packet.attrib['HandshakePacket'] == 'false') %}
if (!handler.IsHandshakeComplete())
{
return AzNetworking::PacketDispatchResult::Pending;
return AzNetworking::PacketDispatchResult::Skipped;
}
{% endif %}

@ -17,7 +17,7 @@ namespace AzNetworking
{
AZ_ENUM_CLASS(PacketDispatchResult
, Failure
, Pending
, Skipped
, Success
);

@ -304,9 +304,9 @@ namespace AzNetworking
// If it's not an expected unencrypted type then skip it for now
continue;
}
else if (handledPacket == PacketDispatchResult::Pending)
else if (handledPacket == PacketDispatchResult::Skipped)
{
// If we did not handle due to a handshake pending completion, skip it
// If the result is marked as skipped then do so (i.e. if a handshake is not yet complete)
continue;
}
else if (connection->GetConnectionState() != ConnectionState::Disconnecting)

Loading…
Cancel
Save