mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-09-15 17:41:31 +01:00
check if peer is connected before trying to connect
This commit is contained in:
parent
39e378a03d
commit
1e5604ed43
2 changed files with 10 additions and 7 deletions
|
@ -101,6 +101,8 @@ namespace transport
|
|||
isReachable = (bool)router->GetCompatibleTransports (true);
|
||||
}
|
||||
}
|
||||
|
||||
bool IsConnected () const { return !sessions.empty (); }
|
||||
};
|
||||
|
||||
const uint64_t SESSION_CREATION_TIMEOUT = 15; // in seconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue