diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-09-04 20:16:06 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-04 20:37:50 -0500 |
commit | 88ebea5aca0cf9a45e85d03a07119c403494634c (patch) | |
tree | 3a09687c1b72403085e6b6ff0d73a4ed21b70404 /src/voicecall.c | |
parent | adaa72533a35ace0742aa3849b636ff3584014ba (diff) | |
download | ofono-88ebea5aca0cf9a45e85d03a07119c403494634c.tar.bz2 |
Don't emit disconnect reason if unknown
Diffstat (limited to 'src/voicecall.c')
-rw-r--r-- | src/voicecall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index d2b8c388..20b6a7f4 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -1252,7 +1252,9 @@ void ofono_voicecall_disconnected(struct ofono_voicecall *vc, int id, __ofono_modem_release_callid(modem, id); - voicecall_emit_disconnect_reason(call, reason); + if (reason != OFONO_DISCONNECT_REASON_UNKNOWN) + voicecall_emit_disconnect_reason(call, reason); + voicecall_set_call_status(call, CALL_STATUS_DISCONNECTED); if (prev_status == CALL_STATUS_INCOMING || |