mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:48:15 +02:00
Merge pull request #7412 from huffman/fix-handshake-packet
Fix handshake packet being used across SendQueues
This commit is contained in:
commit
13a906aa20
1 changed files with 1 additions and 3 deletions
|
@ -203,9 +203,7 @@ void SendQueue::sendHandshake() {
|
||||||
std::unique_lock<std::mutex> handshakeLock { _handshakeMutex };
|
std::unique_lock<std::mutex> handshakeLock { _handshakeMutex };
|
||||||
if (!_hasReceivedHandshakeACK) {
|
if (!_hasReceivedHandshakeACK) {
|
||||||
// we haven't received a handshake ACK from the client, send another now
|
// we haven't received a handshake ACK from the client, send another now
|
||||||
static const auto handshakePacket = ControlPacket::create(ControlPacket::Handshake, sizeof(SequenceNumber));
|
auto handshakePacket = ControlPacket::create(ControlPacket::Handshake, sizeof(SequenceNumber));
|
||||||
|
|
||||||
handshakePacket->seek(0);
|
|
||||||
|
|
||||||
handshakePacket->writePrimitive(_initialSequenceNumber);
|
handshakePacket->writePrimitive(_initialSequenceNumber);
|
||||||
_socket->writeBasePacket(*handshakePacket, _destination);
|
_socket->writeBasePacket(*handshakePacket, _destination);
|
||||||
|
|
Loading…
Reference in a new issue