From 114b28f973631539cf689b75e6dc1dfaa380fb0c Mon Sep 17 00:00:00 2001 From: Gilbert Wong Date: Thu, 28 Mar 2019 11:12:48 +0800 Subject: [PATCH] Delete function clause which would reply {error,standing_by} --- src/emqx_bridge.erl | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/emqx_bridge.erl b/src/emqx_bridge.erl index 60969283b..740f52b98 100644 --- a/src/emqx_bridge.erl +++ b/src/emqx_bridge.erl @@ -298,8 +298,6 @@ standing_by({call, From}, ensure_started, State) -> [{reply, From, ok}]}; standing_by(state_timeout, do_connect, State) -> {next_state, connecting, State}; -standing_by({call, From}, _Call, _State) -> - {keep_state_and_data, [{reply, From, {error,standing_by}}]}; standing_by(info, Info, State) -> ?LOG(info, "[Bridge] Bridge ~p discarded info event at state standing_by:\n~p", [name(), Info]), {keep_state_and_data, State}; @@ -574,4 +572,3 @@ name(Id) -> list_to_atom(lists:concat([?MODULE, "_", Id])). id(Pid) when is_pid(Pid) -> Pid; id(Name) -> name(Name). -