]> Sergey Matveev's repositories - vors.git/commitdiff
Do not be too aggressive to jitter
authorSergey Matveev <stargrave@stargrave.org>
Tue, 16 Apr 2024 12:33:58 +0000 (15:33 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 16 Apr 2024 12:33:58 +0000 (15:33 +0300)
cmd/client/main.go

index 6ac75099d2099c8beaf373edb4e32d3bc1f9277a15914b5b59d35eac64929709..b74a75bc79920baae9965effc59d4f5ff1810b15a1dfa159805b6ace3be7b0a9 100644 (file)
@@ -391,7 +391,7 @@ func main() {
                                                        var ok bool
                                                        var err error
                                                        for {
-                                                               for len(playerTx) > 1 {
+                                                               for len(playerTx) > vors.MaxLost {
                                                                        <-playerTx
                                                                        stream.stats.reorder++
                                                                }