]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-toss/main.go
Fix tossing of self/rx when nncp-toss -cycle
[nncp.git] / 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,
-                       )
                }
        }
 }