mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 15:21:45 +00:00
move GetStreamsList body to Streaming.cpp
This commit is contained in:
1 parent
08ec42909a
commit
37acd98bdd
2 files changed
+10
-9
No files matched your search
@@ -2375,6 +2375,15 @@ namespace stream
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<const Stream> > StreamingDestination::GetStreamsList ()
|
||||
{
|
||||
std::vector<std::shared_ptr<const Stream> > streams;
|
||||
std::lock_guard<std::mutex> l(m_StreamsMutex);
|
||||
for (const auto& it: m_Streams)
|
||||
streams.push_back (it.second);
|
||||
return streams;
|
||||
}
|
||||
|
||||
bool StreamingDestination::DeleteStream (uint32_t recvStreamID)
|
||||
{
|
||||
auto it = m_Streams.find (recvStreamID);
|
||||
|
||||
Reference in new issue
Block a user