mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
consider test failed state as established. Delete failed tunnels sooner
This commit is contained in:
parent
def404b61a
commit
6439e227f6
2 changed files with 6 additions and 5 deletions
|
@ -91,7 +91,7 @@ namespace tunnel
|
|||
i2p::data::RouterInfo::CompatibleTransports GetFarEndTransports () const { return m_FarEndTransports; };
|
||||
TunnelState GetState () const { return m_State; };
|
||||
void SetState (TunnelState state);
|
||||
bool IsEstablished () const { return m_State == eTunnelStateEstablished; };
|
||||
bool IsEstablished () const { return m_State == eTunnelStateEstablished || m_State == eTunnelStateTestFailed; };
|
||||
bool IsFailed () const { return m_State == eTunnelStateFailed; };
|
||||
bool IsRecreated () const { return m_IsRecreated; };
|
||||
void SetRecreated (bool recreated) { m_IsRecreated = recreated; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue