Minor adjustments to remove warnings
This commit is contained in:
+2
-2
@@ -72,8 +72,8 @@ fun drainOutbound(
|
|||||||
val handshakeHasContent = handshakeFrames != null && handshakeState.sendProtection != null
|
val handshakeHasContent = handshakeFrames != null && handshakeState.sendProtection != null
|
||||||
|
|
||||||
// Build natural-size first.
|
// Build natural-size first.
|
||||||
val initialNatural = if (initialHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.INITIAL, initialFrames!!, padBytes = 0) else null
|
val initialNatural = if (initialHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.INITIAL, initialFrames, padBytes = 0) else null
|
||||||
val handshakeNatural = if (handshakeHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.HANDSHAKE, handshakeFrames!!, padBytes = 0) else null
|
val handshakeNatural = if (handshakeHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.HANDSHAKE, handshakeFrames, padBytes = 0) else null
|
||||||
|
|
||||||
val firstPass = listOfNotNull(initialNatural, handshakeNatural, applicationPkt)
|
val firstPass = listOfNotNull(initialNatural, handshakeNatural, applicationPkt)
|
||||||
if (firstPass.isEmpty()) return null
|
if (firstPass.isEmpty()) return null
|
||||||
|
|||||||
@@ -159,7 +159,6 @@ class InMemoryQuicPipe(
|
|||||||
when (peeked.type) {
|
when (peeked.type) {
|
||||||
LongHeaderType.INITIAL -> initialPnSpace
|
LongHeaderType.INITIAL -> initialPnSpace
|
||||||
LongHeaderType.HANDSHAKE -> handshakePnSpace
|
LongHeaderType.HANDSHAKE -> handshakePnSpace
|
||||||
else -> return
|
|
||||||
}
|
}
|
||||||
val parsed =
|
val parsed =
|
||||||
LongHeaderPacket.parseAndDecrypt(
|
LongHeaderPacket.parseAndDecrypt(
|
||||||
|
|||||||
Reference in New Issue
Block a user