Skip to content

Commit

Permalink
Proper disconnect for Elixir 0.14.*
Browse files Browse the repository at this point in the history
  • Loading branch information
alfert committed Jul 6, 2014
1 parent 0ea0d7d commit 19f08bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mqttex/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ defmodule Mqttex.Server do
# TODO: call unsubscribe all topics
Lager.debug("Got Disconnect, going to disconnected mode")
# no timeout here, we wait forever
{:noreply, state.state(:clean_disconnect)}
{:noreply, %Mqttex.Server{state | state: :clean_disconnect} }
end
########################################################################################
### All messages coming from the inside and the protocol handling
Expand Down

0 comments on commit 19f08bc

Please sign in to comment.