Преглед изворни кода

fix: don't call non-existing function

Kjell Winblad пре 2 година
родитељ
комит
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 ->
         undefined ->
             ok;
             ok;
         TopicToHandlerIndex ->
         TopicToHandlerIndex ->
-            emqx_topic_index:delete(TopicToHandlerIndex)
+            ets:delete(TopicToHandlerIndex)
     end,
     end,
     Allocated = emqx_resource:get_allocated_resources(ResourceId),
     Allocated = emqx_resource:get_allocated_resources(ResourceId),
     ok = stop_helper(Allocated).
     ok = stop_helper(Allocated).