X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=src%2Fcall.go;h=95a70d6dcc502e03484c2385d8a665dde3b78bf8;hp=295e7c8805c62eaee4cf0d3fd5051e4e86fb2251;hb=2570c230757df9e463ea072d9110564b53031ce3;hpb=b46eb09ab5d2a55df479566b3758e21ff136e20e diff --git a/src/call.go b/src/call.go index 295e7c8..95a70d6 100644 --- a/src/call.go +++ b/src/call.go @@ -117,7 +117,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())}, @@ -138,7 +138,6 @@ func (ctx *Ctx) CallNode( humanize.IBytes(uint64(state.TxSpeed)), ) }) - isGood = true conn.Close() break } else {