diff --git a/src/py_recv.cpp b/src/py_recv.cpp index f5ec5f060..0d013c6a9 100644 --- a/src/py_recv.cpp +++ b/src/py_recv.cpp @@ -897,12 +897,12 @@ py::module register_module(py::module &parent) py::class_>(m, "ChunkRingPair") .def( "add_free_chunk", - [](chunk_ring_stream_wrapper &stream, chunk &c) + [](detail::chunk_ring_pair &self, chunk &c) { push_chunk( - [&stream](std::unique_ptr &&wrapper) + [&self](std::unique_ptr &&wrapper) { - stream.add_free_chunk(std::move(wrapper)); + self.add_free_chunk(std::move(wrapper)); }, c );