]> Cypherpunks.ru repositories - nncp.git/commitdiff
Fix tossing of self/rx when nncp-toss -cycle
authorSergey Matveev <stargrave@stargrave.org>
Thu, 2 Sep 2021 11:17:32 +0000 (14:17 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 2 Sep 2021 11:17:32 +0000 (14:17 +0300)
src/cmd/nncp-toss/main.go

index 8497486832746fda54b453822d419cd869b72f35..719b8a4c61cb4022e544a66b9a0a3363c777cdeb 100644 (file)
@@ -146,6 +146,12 @@ func main() {
                }(node.Id)
        }
        for nodeId := range nodeIds {
+               ctx.Toss(
+                       nodeId,
+                       nncp.TRx,
+                       nice,
+                       *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea,
+               )
                if *nodeId == *ctx.SelfId {
                        ctx.Toss(
                                nodeId,
@@ -153,13 +159,6 @@ func main() {
                                nice,
                                *dryRun, false, true, true, true, true, *noArea,
                        )
-               } else {
-                       ctx.Toss(
-                               nodeId,
-                               nncp.TRx,
-                               nice,
-                               *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea,
-                       )
                }
        }
 }