From 88ebea5aca0cf9a45e85d03a07119c403494634c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 4 Sep 2009 20:16:06 -0500 Subject: Don't emit disconnect reason if unknown --- src/voicecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 || -- cgit v1.2.3