fixed SAM crash on shared destination teardown

This commit is contained in:
acetone committed 2026-06-19 16:15:51 +03:00
1 parent 1ae6f29670
commit e58701d97c
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -1113,6 +1113,9 @@ namespace client
void ClientDestination::Start ()
{
// Idempotent: a second Start() on a running destination must not re-create
// m_StreamingDestination (orphaning the live one) nor re-arm leaseset/pool.
if (m_StreamingDestination) return;
LeaseSetDestination::Start ();
m_StreamingDestination = std::make_shared<i2p::stream::StreamingDestination> (GetSharedFromThis ()); // TODO:
m_StreamingDestination->Start ();