From 20629f13108c856af8aa4e012731fa85edb0cc1e Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Mon, 2 Nov 2020 17:10:59 -0800 Subject: [PATCH] Fix assert with pipe connections Having to do with "packet numbers" (which are obviously not a real thing with this type of connection). P4:6181652 --- .../clientlib/steamnetworkingsockets_connections.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp index c56f85a..a174aa3 100644 --- a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp +++ b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp @@ -3225,6 +3225,8 @@ failed: // Client sends a "connect" packet if ( !pClient->BConnectionState_Connecting( usecNow, errMsg ) ) goto failed; + Assert( pServer->m_statsEndToEnd.m_nMaxRecvPktNum == 1 ); + pClient->m_statsEndToEnd.m_nNextSendSequenceNumber = pServer->m_statsEndToEnd.m_nMaxRecvPktNum+1; pClient->FakeSendStats( usecNow, 0 ); // Now we wait for the app to accept the connection