Feng hace 9 años
padre
commit
b59a1d7547
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/emqttd_pubsub.erl

+ 1 - 1
src/emqttd_pubsub.erl

@@ -69,7 +69,7 @@ route(Routes, Delivery) ->
                     {ok, DelAcc1} = route([Route], DelAcc), DelAcc1
                     {ok, DelAcc1} = route([Route], DelAcc), DelAcc1
             end, Delivery, Routes)}.
             end, Delivery, Routes)}.
 
 
-delivery(Msg) -> #mqtt_delivery{message = Msg, flows = []}.
+delivery(Msg) -> #mqtt_delivery{sender = self(), message = Msg, flows = []}.
 
 
 %% @doc Forward message to another node...
 %% @doc Forward message to another node...
 forward(Node, To, Delivery) ->
 forward(Node, To, Delivery) ->