From b35ce497f470501a3f8a5ecd20b99c24eb46c393 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 11 May 2021 14:40:24 +0300 Subject: [PATCH] Autotoss should prioritize bad exit code --- doc/news.ru.texi | 3 +++ doc/news.texi | 3 +++ src/toss.go | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/news.ru.texi b/doc/news.ru.texi index 10f1630..de6d127 100644 --- a/doc/news.ru.texi +++ b/doc/news.ru.texi @@ -8,6 +8,9 @@ @item Исправлено падение в @command{nncp-daemon} когда SP рукопожатие не было успешно. +@item +Исправлено возможное игнорирование плохого кода возврата автоматического tosser. + @end itemize @node Релиз 6.4.0 diff --git a/doc/news.texi b/doc/news.texi index a270f3e..5bcd32c 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -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 diff --git a/src/toss.go b/src/toss.go index 37acf54..1752fd2 100644 --- a/src/toss.go +++ b/src/toss.go @@ -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 -- 2.44.0