X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Ftx.go;h=b0377ed9d34b3a7f91c67e451ee2b4683b22c0d6;hb=caee9815d0d54a90abed138666f056ccf8caf889;hp=b8d47aa6148ae87ad542b20236c67a106130f404;hpb=e101af62bf1b32dd49043431b19117f8d7977f65;p=nncp.git diff --git a/src/tx.go b/src/tx.go index b8d47aa..b0377ed 100644 --- a/src/tx.go +++ b/src/tx.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2021 Sergey Matveev +Copyright (C) 2016-2022 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 @@ -205,12 +205,13 @@ func (ctx *Ctx) Tx( r := <-results payloadSize = r.size pktEncMsg = r.pktEncRaw + wrappers-- } for i := 0; i <= wrappers; i++ { r := <-results if r.err != nil { tmp.Fd.Close() - return nil, 0, err + return nil, 0, r.err } if r.pktEncRaw != nil { pktEncRaw = r.pktEncRaw