linking: return after aborting transition

Avoid calling return_error() on the same transition multiple times.

Fixes: 4b153ec553 ("link-target.lua: change into a async hook")
See #628
This commit is contained in:
Barnabás Pőcze
2024-05-18 01:04:42 +02:00
parent 89b6766cd6
commit 4ed51791e0

View File

@@ -50,6 +50,7 @@ AsyncEventHook {
si_flags.failed_count > 5 then
transition:return_error ("tried to link on last rescan, not retrying "
.. tostring (si_link))
return
end
if si_props ["item.factory.name"] == "si-audio-virtual" then