X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcall.go;h=95a70d6dcc502e03484c2385d8a665dde3b78bf8;hb=HEAD;hp=c4e04cbd9d2a1a47a1e5c5f27a62410b159d0a0c;hpb=09d14cc39cce6710af382e3a178d215be268a0d7;p=nncp.git diff --git a/src/call.go b/src/call.go index c4e04cb..5bb5d0e 100644 --- a/src/call.go +++ b/src/call.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2022 Sergey Matveev +Copyright (C) 2016-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,6 +50,8 @@ type Call struct { AutoTossNoExec bool AutoTossNoTrns bool AutoTossNoArea bool + AutoTossNoACK bool + AutoTossGenACK bool } func (ctx *Ctx) CallNode( @@ -116,7 +118,7 @@ func (ctx *Ctx) CallNode( ctx.LogI("call-started", les, func(les LEs) string { return fmt.Sprintf("Connection to %s (%s)", node.Name, addr) }) - state.Wait() + isGood = state.Wait() ctx.LogI("call-finished", append( les, LE{"Duration", int64(state.Duration.Seconds())}, @@ -137,7 +139,6 @@ func (ctx *Ctx) CallNode( humanize.IBytes(uint64(state.TxSpeed)), ) }) - isGood = true conn.Close() break } else {