From cb6155b94609b0170f2db2a6f83f3c6efbaf695c Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 11 May 2022 11:44:27 -0400 Subject: [PATCH] fixed warning --- libi2pd/Streaming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 81c09c84..c32a75af 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -1285,7 +1285,8 @@ namespace stream auto it = m_Streams.find (recvStreamID); if (it == m_Streams.end ()) return false; - m_Owner->GetService ().post ([this, s = it->second]() + auto s = it->second; + m_Owner->GetService ().post ([this, s] () { s->Close (); // try to send FIN s->Terminate (false);