diff --git a/source/forstio/io_peer.tmpl.h b/source/forstio/io_peer.tmpl.h index 801f691..773e1f1 100644 --- a/source/forstio/io_peer.tmpl.h +++ b/source/forstio/io_peer.tmpl.h @@ -46,7 +46,7 @@ Own stream_, Codec codec_, BufferT in_, BufferT out_): return Void{}; }).sink([this](Error error){ - incoming_feeder->fail(error); + incoming_feeder->fail(error.copyError()); return error; })