mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 21:51:51 +00:00
return the stream list instead of filling a reference
This commit is contained in:
1 parent
52bde6a907
commit
08ec42909a
2 files changed
+9
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user