Skip to content

Commit f3a8991

Browse files
committed
Fixed initial peer packet not getting processed
1 parent 65e7aae commit f3a8991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Contents/Source/PolyPeer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void Peer::sendPacket(const Address &target, Packet *packet) {
185185
}
186186

187187
bool Peer::checkPacketAcks(PeerConnection *connection, Packet *packet) {
188-
if(packet->header.sequence > connection->remoteSequence) {
188+
if(packet->header.sequence > connection->remoteSequence || connection->remoteSequence == 0) {
189189
connection->remoteSequence = packet->header.sequence;
190190
} else {
191191
return false;

0 commit comments

Comments
 (0)