diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-12-20 17:48:59 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-12-20 17:48:59 +0000 |
commit | d984072da3e10cd711cf63791767083dd65e3c29 (patch) | |
tree | 3908ec2d48e6b8e754c2baf29246b8ba39b126c4 /src/conversation | |
parent | 8058812229c45f8757e9118ff508743e03fd51ae (diff) |
- do not send a PHONE_HANG_UP message while terminating a caller connection
Diffstat (limited to 'src/conversation')
-rw-r--r-- | src/conversation/conversation_api_call.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/conversation/conversation_api_call.c b/src/conversation/conversation_api_call.c index c3d414a502..418af0b732 100644 --- a/src/conversation/conversation_api_call.c +++ b/src/conversation/conversation_api_call.c @@ -583,21 +583,6 @@ GNUNET_CONVERSATION_call_start (const struct GNUNET_CONFIGURATION_Handle *cfg, /** - * We've sent the hang up message, now finish terminating the call. - * - * @param cls the `struct GNUNET_CONVERSATION_Call` to terminate - */ -static void -finish_stop (void *cls) -{ - struct GNUNET_CONVERSATION_Call *call = cls; - - GNUNET_assert (CS_SHUTDOWN == call->state); - GNUNET_CONVERSATION_call_stop (call); -} - - -/** * Terminate a call. The call may be ringing or ready at this time. * * @param call call to terminate @@ -605,9 +590,6 @@ finish_stop (void *cls) void GNUNET_CONVERSATION_call_stop (struct GNUNET_CONVERSATION_Call *call) { - struct GNUNET_MQ_Envelope *e; - struct ClientPhoneHangupMessage *hang; - if ( (NULL != call->speaker) && (CS_ACTIVE == call->state) ) call->speaker->disable_speaker (call->speaker->cls); @@ -617,10 +599,6 @@ GNUNET_CONVERSATION_call_stop (struct GNUNET_CONVERSATION_Call *call) if (CS_SHUTDOWN != call->state) { call->state = CS_SHUTDOWN; - e = GNUNET_MQ_msg (hang, GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); - GNUNET_MQ_notify_sent (e, &finish_stop, call); - GNUNET_MQ_send (call->mq, e); - return; } if (NULL != call->mq) { |