From d811ac47dca4b1c4252b1e5ea55fbe1cdc37af3e Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 29 Jul 2025 19:10:40 -0400 Subject: [PATCH] Client compatibility check more often --- libi2pd/Streaming.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 1b369516..007f96e0 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -880,6 +880,8 @@ namespace stream numMsgs = m_NumPacketsToSend; if (m_RoutingSession) { + m_IsJavaClient = m_RoutingSession->IsWithJava (); + if (m_IsJavaClient) m_MaxWindowSize = 64; int numSentPackets = m_RoutingSession->NumSentPackets (); int numPacketsToSend = m_MaxWindowSize - numSentPackets; if (numPacketsToSend <= 0) // shared window is full @@ -1337,8 +1339,6 @@ namespace stream m_CurrentRemoteLease = routingPath->remoteLease; m_RTT = routingPath->rtt; } - m_IsJavaClient = m_RoutingSession->IsWithJava (); - if (m_IsJavaClient) m_MaxWindowSize = 64; } auto ts = i2p::util::GetMillisecondsSinceEpoch ();