diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-05 18:53:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-05 18:53:26 +0000 |
commit | edacb648f31ab42d7f011d04a06dd23fd31ae54b (patch) | |
tree | 549f9cb5a4ad7299a6c15c1b35fd32dbf7aaff90 /src/conversation/conversation_api.c | |
parent | 392b0d1d0ecb68a60119cef1ac986da3064f3adf (diff) | |
download | gnunet-edacb648f31ab42d7f011d04a06dd23fd31ae54b.tar.gz gnunet-edacb648f31ab42d7f011d04a06dd23fd31ae54b.zip |
-disable phone on reconnect
Diffstat (limited to 'src/conversation/conversation_api.c')
-rw-r--r-- | src/conversation/conversation_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index 671315f74..9755a3cf0 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c | |||
@@ -359,6 +359,11 @@ reconnect_phone (struct GNUNET_CONVERSATION_Phone *phone) | |||
359 | struct GNUNET_MQ_Envelope *e; | 359 | struct GNUNET_MQ_Envelope *e; |
360 | struct ClientPhoneRegisterMessage *reg; | 360 | struct ClientPhoneRegisterMessage *reg; |
361 | 361 | ||
362 | if (PS_ACTIVE == phone->state) | ||
363 | { | ||
364 | phone->speaker->disable_speaker (phone->speaker->cls); | ||
365 | phone->mic->disable_microphone (phone->mic->cls); | ||
366 | } | ||
362 | if (NULL != phone->mq) | 367 | if (NULL != phone->mq) |
363 | { | 368 | { |
364 | GNUNET_MQ_destroy (phone->mq); | 369 | GNUNET_MQ_destroy (phone->mq); |