Explorar o código

Merge branch 'emq20' of github.com:emqtt/emqttd into emq20

Feng Lee %!s(int64=9) %!d(string=hai) anos
pai
achega
6d5ce1f584
Modificáronse 1 ficheiros con 1 adicións e 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
             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...
 forward(Node, To, Delivery) ->