Add CMessagesEndPointSession::m_bAppScheduledTimeout

It's not useful in this code but it's useful for FakeUDPPort sessions.

P4:6894651
This commit is contained in:
Fletcher Dunn
2021-11-12 18:40:19 -08:00
parent 0d36f6cdd3
commit 184caecc5c
2 changed files with 5 additions and 0 deletions
@@ -167,6 +167,7 @@ CMessagesEndPointSession::CMessagesEndPointSession(
, m_messageEndPointOwner( endPoint )
{
m_pConnection = nullptr;
m_bAppScheduledTimeout = false;
m_bConnectionWasEverConnected = false;
MarkUsed( SteamNetworkingSockets_GetLocalTimestamp() );
@@ -183,6 +184,7 @@ CMessagesEndPointSession::~CMessagesEndPointSession()
void CMessagesEndPointSession::MarkUsed( SteamNetworkingMicroseconds usecNow )
{
m_usecIdleTimeout = usecNow + k_usecSteamNetworkingP2PSessionIdleTimeout;
m_bAppScheduledTimeout = false;
ScheduleThink();
}
@@ -86,6 +86,9 @@ public:
/// and we should clean it up.
SteamNetworkingMicroseconds m_usecIdleTimeout;
/// Try if the app scheduled cleanup
bool m_bAppScheduledTimeout;
/// True if the current connection ever managed to go fully connected
bool m_bConnectionWasEverConnected;