From: Sergey Matveev Date: Tue, 11 May 2021 11:40:24 +0000 (+0300) Subject: Autotoss should prioritize bad exit code X-Git-Tag: v6.5.0^2~4 X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=commitdiff_plain;h=b35ce497f470501a3f8a5ecd20b99c24eb46c393 Autotoss should prioritize bad exit code --- 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