A hazelut is either active or potential

This commit is contained in:
2021-01-05 18:25:55 +01:00
parent 95a2501e49
commit 5ffe0d21c3
2 changed files with 8 additions and 4 deletions

View File

@ -171,7 +171,6 @@ class HelloTLV(TLV):
sender.last_hello_time = time_h
sender.last_long_hello_time = time_hl
sender.symmetric = True
sender.potential = False
sender.active = True
squirrel.update_hazelnut_table(sender)
squirrel.nbNS += 1
@ -376,7 +375,6 @@ class GoAwayTLV(TLV):
def handle(self, squirrel: Any, sender: Any) -> None:
if sender.active:
sender.active = False
sender.potential = True
squirrel.update_hazelnut_table(sender)
squirrel.add_system_message("Some told me that he went away : " + self.message)