mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
notify inbound tunnels update
This commit is contained in:
parent
eff3bb6ab1
commit
29243fcb47
5 changed files with 28 additions and 14 deletions
|
@ -26,6 +26,7 @@ namespace tunnel
|
|||
void TunnelPool::TunnelCreated (InboundTunnel * createdTunnel)
|
||||
{
|
||||
m_InboundTunnels.insert (createdTunnel);
|
||||
m_LocalDestination.SetLeaseSetUpdated ();
|
||||
}
|
||||
|
||||
void TunnelPool::TunnelExpired (InboundTunnel * expiredTunnel)
|
||||
|
@ -126,6 +127,7 @@ namespace tunnel
|
|||
{
|
||||
it.second.second->SetState (eTunnelStateFailed);
|
||||
m_InboundTunnels.erase (it.second.second);
|
||||
m_LocalDestination.SetLeaseSetUpdated ();
|
||||
}
|
||||
else
|
||||
it.second.second->SetState (eTunnelStateTestFailed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue