mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Respond to path challenge. Correct termination reason for duplicated session
This commit is contained in:
parent
9d9d5e3e5d
commit
98d2ce5845
3 changed files with 20 additions and 2 deletions
|
@ -292,7 +292,7 @@ namespace transport
|
|||
// session already exists
|
||||
LogPrint (eLogWarning, "SSU2: Session to ", ident->GetIdentHash ().ToBase64 (), " already exists");
|
||||
// terminate existing
|
||||
GetService ().post (std::bind (&SSU2Session::RequestTermination, ret.first->second, eSSU2TerminationReasonTerminationReceived));
|
||||
GetService ().post (std::bind (&SSU2Session::RequestTermination, ret.first->second, eSSU2TerminationReasonReplacedByNewSession));
|
||||
// update session
|
||||
ret.first->second = session;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue