scripts: do not store the link in si_flags

Otherwise the link is not destroyed right away when doing silink:remove()
This commit is contained in:
Julian Bouzas
2023-08-15 16:32:19 -04:00
parent 591d0b4370
commit dcee74fcca
2 changed files with 1 additions and 3 deletions

View File

@@ -156,14 +156,13 @@ AsyncEventHook {
end
l:remove ()
else
si_flags.si_link = si_link
si_flags.failed_peer_id = nil
if si_flags.peer_id == nil then
si_flags.peer_id = target.id
end
si_flags.failed_count = 0
log:info (si_link, "activated si-standard-link between "
log:info (l, "activated si-standard-link between "
.. tostring (si).." and ".. tostring(target))
transition:advance ()

View File

@@ -182,7 +182,6 @@ AsyncEventHook {
l:remove ()
else
log:info (l, "virtual si-standard-link activated successfully")
si_flags.si_link = l
si_flags.failed_peer_id = nil
if si_flags.peer_id == nil then
si_flags.peer_id = target_id