]> granicus.if.org Git - ejabberd/commitdiff
Fix attaching ejabberd_s2s_out process to a supervisor
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 11 Jan 2017 08:09:56 +0000 (11:09 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 11 Jan 2017 08:09:56 +0000 (11:09 +0300)
src/ejabberd_s2s_out.erl

index 6217a9f52f92a502cb50c4f0110d136d02e5f06f..70ab0cfe4f2ccd56c75f79ce270576d348446c33 100644 (file)
@@ -56,7 +56,7 @@ start(From, To, Opts) ->
     case proplists:get_value(supervisor, Opts, true) of
        true ->
            supervisor:start_child(ejabberd_s2s_out_sup,
-                                  [ejabberd_socket, From, To, Opts]);
+                                  [From, To, Opts]);
        _ ->
            xmpp_stream_out:start(?MODULE, [ejabberd_socket, From, To, Opts],
                                  ejabberd_config:fsm_limit_opts([]))