Просмотр исходного кода

fix: don't call non-existing function

Kjell Winblad 2 лет назад
Родитель
Сommit
886ed55374
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_bridge_mqtt/src/emqx_bridge_mqtt_connector.erl

+ 1 - 1
apps/emqx_bridge_mqtt/src/emqx_bridge_mqtt_connector.erl

@@ -234,7 +234,7 @@ on_stop(ResourceId, State) ->
         undefined ->
             ok;
         TopicToHandlerIndex ->
-            emqx_topic_index:delete(TopicToHandlerIndex)
+            ets:delete(TopicToHandlerIndex)
     end,
     Allocated = emqx_resource:get_allocated_resources(ResourceId),
     ok = stop_helper(Allocated).