respond to termination

This commit is contained in:
orignal 2022-07-25 18:46:25 -04:00
parent 987497bb10
commit f8a609f692
2 changed files with 11 additions and 4 deletions

View file

@ -1308,7 +1308,10 @@ namespace transport
break;
case eSSU2BlkTermination:
LogPrint (eLogDebug, "SSU2: Termination reason=", (int)buf[11]);
Terminate ();
if (IsEstablished () && buf[11] != eSSU2TerminationReasonTerminationReceived)
RequestTermination (eSSU2TerminationReasonTerminationReceived);
else
Terminate ();
break;
case eSSU2BlkRelayRequest:
LogPrint (eLogDebug, "SSU2: RelayRequest");