diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-07-27 14:12:58 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-07-27 16:00:07 +0800 |
commit | 43ceb090995a22942aa4ba7c7acee4e8966486a4 (patch) | |
tree | c1413ce52693b896744205478ba818d6ac710e1d /src | |
parent | 69b5f279a19dfcb452893b86f1febd9e99e39556 (diff) |
xua_asp_fsm: Only send ASPAS event from ASP to AS if AS pid != undefined
Diffstat (limited to 'src')
-rw-r--r-- | src/xua_asp_fsm.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xua_asp_fsm.erl b/src/xua_asp_fsm.erl index 56bd7cf..0f9b2a4 100644 --- a/src/xua_asp_fsm.erl +++ b/src/xua_asp_fsm.erl @@ -262,7 +262,12 @@ state2aspas(asp_active) -> 'ASP_ACTIVE'. % propagate an ASP state transition as ASPAS primitive to AS next_state(State, LoopDat = #asp_state{as_pid = AsPid}) -> Prim = osmo_util:make_prim('ASPAS', state2aspas(State), indication), - gen_fsm:send_event(AsPid, Prim), + case AsPid of + undefined -> + ok; + _ -> + gen_fsm:send_event(AsPid, Prim) + end, {next_state, State, LoopDat}. % Helper function to send data to the SCTP peer |