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

@@ -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