Try some black magic

This commit is contained in:
Jérôme Leclercq 2017-12-04 16:22:01 +01:00
parent 02d76aee5d
commit 503378ed47
1 changed files with 3 additions and 1 deletions

View File

@ -894,6 +894,8 @@ namespace Nz
break;
}
++currentCommand;
if (channel && outgoingCommand->sendAttempts < 1)
{
channel->usedReliableWindows |= 1 << reliableWindow;
@ -912,8 +914,8 @@ namespace Nz
peer->m_nextTimeout = m_serviceTime + outgoingCommand->roundTripTimeout;
peer->m_sentReliableCommands.emplace_back(std::move(*outgoingCommand));
currentCommand = peer->m_outgoingReliableCommands.erase(outgoingCommand);
peer->m_outgoingReliableCommands.erase(outgoingCommand);
outgoingCommand = peer->m_sentReliableCommands.end();
--outgoingCommand;