]> Cypherpunks.ru repositories - nncp.git/commitdiff
Autotoss should prioritize bad exit code
authorSergey Matveev <stargrave@stargrave.org>
Tue, 11 May 2021 11:40:24 +0000 (14:40 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 30 May 2021 16:05:03 +0000 (19:05 +0300)
doc/news.ru.texi
doc/news.texi
src/toss.go

index 10f1630de86fe591ffc1d9a5b5c5cd2fa17c002b..de6d127607704e090f00ef6d54fd6aaa664c46f5 100644 (file)
@@ -8,6 +8,9 @@
 @item
 Исправлено падение в @command{nncp-daemon} когда SP рукопожатие не было успешно.
 
+@item
+Исправлено возможное игнорирование плохого кода возврата автоматического tosser.
+
 @end itemize
 
 @node Релиз 6.4.0
index a270f3e7f93c12434e70f846143d1e30e46c22d5..5bcd32c18c89fd1f6acee0b80a750a8b334013be 100644 (file)
@@ -10,6 +10,9 @@ See also this page @ref{Новости, on russian}.
 @item
 Fixed segfault in @command{nncp-daemon} when SP handshake did not succeed.
 
+@item
+Fixed possible bad return code ignoring in automatic tosser.
+
 @end itemize
 
 @node Release 6.4.0
index 37acf542d1345b51c6403af06a4b97a215e58762..1752fd2a4f1c34af444176573f35547df8c022b2 100644 (file)
@@ -689,7 +689,7 @@ func (ctx *Ctx) AutoToss(
                        default:
                        }
                        time.Sleep(time.Second)
-                       bad = !ctx.Toss(nodeId, nice, false, doSeen, noFile, noFreq, noExec, noTrns)
+                       bad = !ctx.Toss(nodeId, nice, false, doSeen, noFile, noFreq, noExec, noTrns) || bad
                }
        }()
        return finish, badCode