return the stream list instead of filling a reference

This commit is contained in:
PobreGato committed 2026-08-17 03:21:18 +03:00
1 parent 52bde6a907
commit 08ec42909a
2 files changed
+9 -3

No files matched your search

+5 -2
View File
@@ -1447,9 +1447,12 @@ namespace client
{
std::vector<std::shared_ptr<const i2p::stream::Stream> > ret;
if (m_StreamingDestination)
m_StreamingDestination->GetStreamsList (ret);
ret = m_StreamingDestination->GetStreamsList ();
for (auto& it: m_StreamingDestinationsByPorts)
it.second->GetStreamsList (ret);
{
auto streams = it.second->GetStreamsList ();
ret.insert (ret.end (), streams.begin (), streams.end ());
}
return ret;
}