-disable phone on reconnect
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Oct 2013 18:53:26 +0000 (18:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Oct 2013 18:53:26 +0000 (18:53 +0000)
src/conversation/conversation_api.c

index 671315f74156c08c399d30450c4a7a4ec77a0f5d..9755a3cf0e6a08c12e02c18392804bb0f5751f87 100644 (file)
@@ -359,6 +359,11 @@ reconnect_phone (struct GNUNET_CONVERSATION_Phone *phone)
   struct GNUNET_MQ_Envelope *e;
   struct ClientPhoneRegisterMessage *reg;
 
+  if (PS_ACTIVE == phone->state)
+  {
+    phone->speaker->disable_speaker (phone->speaker->cls);
+    phone->mic->disable_microphone (phone->mic->cls);
+  }
   if (NULL != phone->mq)
   {
     GNUNET_MQ_destroy (phone->mq);