[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31630 - gnunet/src/conversation
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31630 - gnunet/src/conversation |
Date: |
Fri, 20 Dec 2013 18:48:59 +0100 |
Author: harsha
Date: 2013-12-20 18:48:59 +0100 (Fri, 20 Dec 2013)
New Revision: 31630
Modified:
gnunet/src/conversation/conversation_api_call.c
Log:
- do not send a PHONE_HANG_UP message while terminating a caller connection
Modified: gnunet/src/conversation/conversation_api_call.c
===================================================================
--- gnunet/src/conversation/conversation_api_call.c 2013-12-20 17:26:26 UTC
(rev 31629)
+++ gnunet/src/conversation/conversation_api_call.c 2013-12-20 17:48:59 UTC
(rev 31630)
@@ -583,21 +583,6 @@
/**
- * 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 @@
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 @@
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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31630 - gnunet/src/conversation,
gnunet <=