mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Don't pass sockmod to xmpp_stream_out
This commit is contained in:
parent
557e6ecdd0
commit
cf6f540d53
@ -60,12 +60,12 @@ start(From, To, Opts) ->
|
||||
Res -> Res
|
||||
end;
|
||||
_ ->
|
||||
xmpp_stream_out:start(?MODULE, [xmpp_socket, From, To, Opts],
|
||||
xmpp_stream_out:start(?MODULE, [From, To, Opts],
|
||||
ejabberd_config:fsm_limit_opts([]))
|
||||
end.
|
||||
|
||||
start_link(From, To, Opts) ->
|
||||
xmpp_stream_out:start_link(?MODULE, [xmpp_socket, From, To, Opts],
|
||||
xmpp_stream_out:start_link(?MODULE, [From, To, Opts],
|
||||
ejabberd_config:fsm_limit_opts([])).
|
||||
|
||||
-spec connect(pid()) -> ok.
|
||||
|
@ -253,7 +253,7 @@ format_error(Err) ->
|
||||
%%% gen_server callbacks
|
||||
%%%===================================================================
|
||||
-spec init(list()) -> {ok, state(), timeout()} | {stop, term()} | ignore.
|
||||
init([Mod, _SockMod, From, To, Opts]) ->
|
||||
init([Mod, From, To, Opts]) ->
|
||||
Time = p1_time_compat:monotonic_time(milli_seconds),
|
||||
State = #{owner => self(),
|
||||
mod => Mod,
|
||||
|
Loading…
Reference in New Issue
Block a user