]> granicus.if.org Git - ejabberd/commitdiff
Increase gen_mod's supervisor shutdown time
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 17 May 2017 14:33:07 +0000 (17:33 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Wed, 17 May 2017 14:33:07 +0000 (17:33 +0300)
src/gen_mod.erl

index 27d241c9c19a69e70d5e6938aa65a7da262652da..5bfa3b4d46e7cc5e1295a2542233b1908291e8a8 100644 (file)
@@ -99,7 +99,7 @@ start_child(Mod, Host, Opts) ->
 start_child(Mod, Host, Opts, Proc) ->
     Spec = {Proc, {?GEN_SERVER, start_link,
                   [{local, Proc}, Mod, [Host, Opts], []]},
-            transient, 2000, worker, [Mod]},
+            transient, timer:minutes(1), worker, [Mod]},
     supervisor:start_child(ejabberd_gen_mod_sup, Spec).
 
 -spec stop_child(module(), binary() | global) -> ok | {error, any()}.