Only send proof if link is still active

This commit is contained in:
Aaron Heise 2023-02-28 08:13:07 -06:00
parent 8f0151fed6
commit 8168d9bb92
No known key found for this signature in database
GPG Key ID: 6BA54088C41DE8BF

View File

@ -808,6 +808,7 @@ class Link:
else:
plaintext = self.decrypt(packet.data)
self._channel._receive(plaintext)
if self.status == Link.ACTIVE:
packet.prove()
elif packet.packet_type == RNS.Packet.PROOF: