mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 15:02:52 +00:00
fixed SAM crash on shared destination teardown
This commit is contained in:
1 parent
1ae6f29670
commit
e58701d97c
2 files changed
+6
-1
No files matched your search
@@ -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 ();
|
||||
|
||||
Reference in new issue
Block a user