25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Give temporary processes time to stop cleanly

Allow temporary processes to perform some final actions when shutting
down.  For example, moc_muc_room:terminate/3 fails to send 'unavailable'
presence to the room participants when killed immediately.
This commit is contained in:
Holger Weiss 2014-12-21 21:03:22 +01:00
parent cc958f7787
commit 06db65e108

View File

@ -36,4 +36,4 @@ init(Module) ->
{ok,
{{simple_one_for_one, 10, 1},
[{undefined, {Module, start_link, []}, temporary,
brutal_kill, worker, [Module]}]}}.
1000, worker, [Module]}]}}.