Преглед на файлове

app_lua: updated the utils/app_lua_ctl

(cherry picked from commit ac8cc0a3735325ec79a4a634eea6bcdcea4affe7)
(cherry picked from commit d56ec1c20796e9a32790d880c0ab9a4ee579216e)
Daniel-Constantin Mierla преди 7 години
родител
ревизия
539d14e357
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      src/modules/app_lua/utils/app_lua_ctl

+ 3 - 0
src/modules/app_lua/utils/app_lua_ctl

@@ -142,6 +142,9 @@ lua_CFunction sr_kemi_lua_export_associate(sr_kemi_t *ket)
 			_sr_kemi_lua_export_list[i].ket = ket;
 			_sr_kemi_lua_export_list[i].ket = ket;
 			return _sr_kemi_lua_export_list[i].pfunc;
 			return _sr_kemi_lua_export_list[i].pfunc;
 		}
 		}
+		if(_sr_kemi_lua_export_list[i].ket==ket) {
+			return _sr_kemi_lua_export_list[i].pfunc;
+		}
 	}
 	}
 	LM_ERR("no more indexing slots\n");
 	LM_ERR("no more indexing slots\n");
 	return NULL;
 	return NULL;