diff options
author | Anders Svensson <[email protected]> | 2012-11-18 19:38:39 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-11-18 19:38:39 +0100 |
commit | 87241d86716ae02507a5019c3a2f822ff6b334d4 (patch) | |
tree | b7321cabe63e0d3ca6e4578eb824fac104c848e7 /lib/diameter/src/base | |
parent | 9c3a39fa8a5edfaea75226579e28aab49506902c (diff) | |
parent | 476db5308088f0a907aa72726a75e31c695a92d3 (diff) | |
download | otp-87241d86716ae02507a5019c3a2f822ff6b334d4.tar.gz otp-87241d86716ae02507a5019c3a2f822ff6b334d4.tar.bz2 otp-87241d86716ae02507a5019c3a2f822ff6b334d4.zip |
Merge branch 'anders/diameter/service_events/OTP-10492' into maint
* anders/diameter/service_events/OTP-10492:
Add start/stop service_event()
Diffstat (limited to 'lib/diameter/src/base')
-rw-r--r-- | lib/diameter/src/base/diameter_service.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl index cffba4fc94..36907a8d1c 100644 --- a/lib/diameter/src/base/diameter_service.erl +++ b/lib/diameter/src/base/diameter_service.erl @@ -681,6 +681,7 @@ upgrade_insert(#state{service = #diameter_service{pid = Pid}} = S) -> %%% --------------------------------------------------------------------------- terminate(Reason, #state{service_name = Name} = S) -> + send_event(Name, stop), ets:delete(?STATE_TABLE, Name), shutdown == Reason %% application shutdown andalso shutdown(S). @@ -857,6 +858,7 @@ i(SvcName) -> lists:foreach(fun(T) -> start_fsm(T,S) end, CL), init_shared(S), + send_event(SvcName, start), S. cfg_acc({SvcName, #diameter_service{applications = Apps} = Rec, Opts}, |