Change PacketDispatchResult Pending to Skipped
Signed-off-by: puvvadar <puvvadar@amazon.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user