fixed warning

This commit is contained in:
orignal 2022-05-11 11:44:27 -04:00
parent 714d1cc993
commit cb6155b946

View file

@ -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);