use weak_ptr for transport session

This commit is contained in:
orignal
2024-11-29 21:29:03 -05:00
parent fcc70025fd
commit 31ff0ff1cb
2 changed files with 13 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ namespace tunnel
TunnelBase& m_Tunnel;
TunnelGatewayBuffer m_Buffer;
size_t m_NumSentBytes;
std::shared_ptr<i2p::transport::TransportSession> m_CurrentTransport;
std::weak_ptr<i2p::transport::TransportSession> m_CurrentTransport;
std::future<std::shared_ptr<i2p::transport::TransportSession> > m_PendingTransport;
};
}