Showing 1 changed files with 2 additions and 1 deletions
+2 -1
zkv1000.nas
... ...
@@ -110,6 +110,7 @@ var load_multikey = func {
110 110
 }
111 111
 
112 112
 var zkv1000_init = func {
113
+    removelistener(init);
113 114
     load_multikey();
114 115
     load_nasal();
115 116
     init_props();
... ...
@@ -117,5 +118,5 @@ var zkv1000_init = func {
117 118
     print('zkv1000 loaded');
118 119
 }
119 120
 
120
-setlistener('/sim/signals/fdm-initialized', zkv1000_init, 0, 0);
121
+var init = setlistener('/sim/signals/fdm-initialized', zkv1000_init, 0, 0);
121 122