mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
send status failure and drop shared routing path if message was not sent
This commit is contained in:
parent
42782944fb
commit
8e1fb8ca9f
|
@ -295,7 +295,9 @@ namespace client
|
||||||
auto garlic = remoteSession->WrapSingleMessage (msg);
|
auto garlic = remoteSession->WrapSingleMessage (msg);
|
||||||
// send
|
// send
|
||||||
bool sent = SendMsg (garlic, outboundTunnel, remoteLease);
|
bool sent = SendMsg (garlic, outboundTunnel, remoteLease);
|
||||||
m_Owner->SendMessageStatusMessage (nonce, eI2CPMessageStatusGuaranteedSuccess);
|
m_Owner->SendMessageStatusMessage (nonce, sent ? eI2CPMessageStatusGuaranteedSuccess : eI2CPMessageStatusGuaranteedFailure);
|
||||||
|
if (!sent)
|
||||||
|
remoteSession->SetSharedRoutingPath (nullptr);
|
||||||
return sent;
|
return sent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue