mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-08 21:43:07 +02:00
* src/ejabberd_s2s_out.erl: Changed to actual p1_fsm behaviour. It was working
correctly as the API of p1_fsm and gen_fsm is strictly the same. SVN Revision: 948
This commit is contained in:
parent
48a2813ec6
commit
b53f2be7f2
|
@ -8,7 +8,7 @@
|
||||||
-module(ejabberd_s2s_out).
|
-module(ejabberd_s2s_out).
|
||||||
-author('alexey@process-one.net').
|
-author('alexey@process-one.net').
|
||||||
|
|
||||||
-behaviour(gen_fsm).
|
-behaviour(p1_fsm).
|
||||||
|
|
||||||
%% External exports
|
%% External exports
|
||||||
-export([start/3,
|
-export([start/3,
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
start_connection/1,
|
start_connection/1,
|
||||||
stop_connection/1]).
|
stop_connection/1]).
|
||||||
|
|
||||||
%% gen_fsm callbacks
|
%% p1_fsm callbacks (same as gen_fsm)
|
||||||
-export([init/1,
|
-export([init/1,
|
||||||
open_socket/2,
|
open_socket/2,
|
||||||
wait_for_stream/2,
|
wait_for_stream/2,
|
||||||
|
@ -110,7 +110,7 @@ stop_connection(Pid) ->
|
||||||
p1_fsm:send_event(Pid, stop).
|
p1_fsm:send_event(Pid, stop).
|
||||||
|
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
%%% Callback functions from gen_fsm
|
%%% Callback functions from p1_fsm
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
%%----------------------------------------------------------------------
|
%%----------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user