and thus I delete the removelistener

This commit is contained in:
Jonathan Redpath 2017-12-10 18:26:45 -04:00
parent 6d22da6551
commit fe82a2bcef

View file

@ -168,7 +168,7 @@ var triggerDoor = func(door, doorName, doorDesc) {
# Various Other Stuff #
#######################
var sl = setlistener("/sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
fbw.fctlInit();
systems.ELEC.init();
systems.PNEU.init();
@ -191,7 +191,6 @@ var sl = setlistener("/sim/signals/fdm-initialized", func {
setprop("/it-autoflight/input/fd2", 1);
libraries.ECAMinit();
libraries.variousReset();
removelistener(sl);
});
var systemsLoop = maketimer(0.1, func {