aria2-feeder: morir si algo falla

This commit is contained in:
Cat /dev/Nulo 2021-11-30 20:46:11 -03:00
parent a573b55f61
commit 0b0162ff6a

View file

@ -11,6 +11,7 @@ while 1 do
if not line then break end if not line then break end
local result = os.execute("./feed-aria2.sh '"..line.."' '"..rpc.."'") local result = os.execute("./feed-aria2.sh '"..line.."' '"..rpc.."'")
if not result == 0 then if not result == 0 then
print("¡Hubo un error!")
return return
end end
end end