diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-04 10:26:59 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-04 10:26:59 +0300 |
commit | 05461d16860697e0818905463462f42d26dffc89 (patch) | |
tree | de5cd55bcc6561002117ffec2161736910a67704 /src/gen_mod.erl | |
parent | Make return type of sql_transaction() consistent (diff) |
Propagate max_fsm_queue to all modules started as gen_server
Diffstat (limited to 'src/gen_mod.erl')
-rw-r--r-- | src/gen_mod.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 5dcb00cc8..5e04c5dbb 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -96,7 +96,8 @@ start_child(Mod, Host, Opts) -> -spec start_child(module(), binary(), opts(), atom()) -> {ok, pid()} | {error, any()}. start_child(Mod, Host, Opts, Proc) -> Spec = {Proc, {?GEN_SERVER, start_link, - [{local, Proc}, Mod, [Host, Opts], []]}, + [{local, Proc}, Mod, [Host, Opts], + ejabberd_config:fsm_limit_opts([])]}, transient, timer:minutes(1), worker, [Mod]}, supervisor:start_child(ejabberd_gen_mod_sup, Spec). |