Browse Source

fix: don't call non-existing function

Kjell Winblad 2 years ago
parent
commit
886ed55374
1 changed files with 1 additions and 1 deletions
  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).