respond to termination

This commit is contained in:
orignal committed 2022-07-25 18:46:25 -04:00
1 parent 987497bb10
commit f8a609f692
2 files changed
+11 -4

No files matched your search

+4 -1
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");