diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-11-04 16:24:35 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-11-04 16:24:35 +0100 |
commit | 341be9b6820d2d2ee0113dce3f66b0d6571fd95f (patch) | |
tree | debe59f56f02704a81bdf5b9a99e5c9b43832946 /src/mod_muc_room.erl | |
parent | Add copyright and license to HTTP upload modules (diff) |
Remove supervisor option, disable it for c2s and muc
Diffstat (limited to 'src/mod_muc_room.erl')
-rw-r--r-- | src/mod_muc_room.erl | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index cf26bdea..dcf276b8 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -70,32 +70,19 @@ -endif. -%% Module start with or without supervisor: --ifdef(NO_TRANSIENT_SUPERVISORS). --define(SUPERVISOR_START, - gen_fsm:start(?MODULE, [Host, ServerHost, Access, Room, HistorySize, - RoomShaper, Creator, Nick, DefRoomOpts], - ?FSMOPTS)). --else. --define(SUPERVISOR_START, - Supervisor = gen_mod:get_module_proc(ServerHost, ejabberd_mod_muc_sup), - supervisor:start_child( - Supervisor, [Host, ServerHost, Access, Room, HistorySize, RoomShaper, - Creator, Nick, DefRoomOpts])). --endif. - %%%---------------------------------------------------------------------- %%% API %%%---------------------------------------------------------------------- start(Host, ServerHost, Access, Room, HistorySize, RoomShaper, Creator, Nick, DefRoomOpts) -> - ?SUPERVISOR_START. + gen_fsm:start(?MODULE, [Host, ServerHost, Access, Room, HistorySize, + RoomShaper, Creator, Nick, DefRoomOpts], + ?FSMOPTS). start(Host, ServerHost, Access, Room, HistorySize, RoomShaper, Opts) -> - Supervisor = gen_mod:get_module_proc(ServerHost, ejabberd_mod_muc_sup), - supervisor:start_child( - Supervisor, [Host, ServerHost, Access, Room, HistorySize, RoomShaper, - Opts]). + gen_fsm:start(?MODULE, [Host, ServerHost, Access, Room, HistorySize, + RoomShaper, Opts], + ?FSMOPTS). start_link(Host, ServerHost, Access, Room, HistorySize, RoomShaper, Creator, Nick, DefRoomOpts) -> |