Skip to content

Commit d811ac4

Browse files
committed
Client compatibility check more often
1 parent 44b4fcc commit d811ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libi2pd/Streaming.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,8 @@ namespace stream
880880
numMsgs = m_NumPacketsToSend;
881881
if (m_RoutingSession)
882882
{
883+
m_IsJavaClient = m_RoutingSession->IsWithJava ();
884+
if (m_IsJavaClient) m_MaxWindowSize = 64;
883885
int numSentPackets = m_RoutingSession->NumSentPackets ();
884886
int numPacketsToSend = m_MaxWindowSize - numSentPackets;
885887
if (numPacketsToSend <= 0) // shared window is full
@@ -1337,8 +1339,6 @@ namespace stream
13371339
m_CurrentRemoteLease = routingPath->remoteLease;
13381340
m_RTT = routingPath->rtt;
13391341
}
1340-
m_IsJavaClient = m_RoutingSession->IsWithJava ();
1341-
if (m_IsJavaClient) m_MaxWindowSize = 64;
13421342
}
13431343

13441344
auto ts = i2p::util::GetMillisecondsSinceEpoch ();

0 commit comments

Comments
 (0)