mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
check if peer is connected before trying to connect
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user