diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-05 17:59:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-05 17:59:22 +0000 |
commit | ad4b11942be849ee4f97810d4614c60dab4931f5 (patch) | |
tree | d38508a3b4d900f944d3744e1adaed7cd7389305 /src/conversation | |
parent | 5e0ed8212dfb7eb0b96f01482b30ff21cf101289 (diff) | |
download | gnunet-ad4b11942be849ee4f97810d4614c60dab4931f5.tar.gz gnunet-ad4b11942be849ee4f97810d4614c60dab4931f5.zip |
-misc minor bugfixes
Diffstat (limited to 'src/conversation')
-rw-r--r-- | src/conversation/conversation_api.c | 2 | ||||
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index 715d107f0..0ad85131c 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c | |||
@@ -272,6 +272,8 @@ handle_phone_hangup (void *cls, | |||
272 | phone->event_handler (phone->event_handler_cls, | 272 | phone->event_handler (phone->event_handler_cls, |
273 | GNUNET_CONVERSATION_EC_TERMINATED, | 273 | GNUNET_CONVERSATION_EC_TERMINATED, |
274 | reason); | 274 | reason); |
275 | phone->speaker->disable_speaker (phone->speaker->cls); | ||
276 | phone->mic->disable_microphone (phone->mic->cls); | ||
275 | break; | 277 | break; |
276 | } | 278 | } |
277 | } | 279 | } |
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index d379931f7..2bb7caea7 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -223,11 +223,11 @@ handle_client_register_message (void *cls, | |||
223 | line = GNUNET_new (struct Line); | 223 | line = GNUNET_new (struct Line); |
224 | line->client = client; | 224 | line->client = client; |
225 | GNUNET_SERVER_notification_context_add (nc, client); | 225 | GNUNET_SERVER_notification_context_add (nc, client); |
226 | GNUNET_SERVER_client_set_user_context (client, line); | ||
226 | GNUNET_CONTAINER_DLL_insert (lines_head, | 227 | GNUNET_CONTAINER_DLL_insert (lines_head, |
227 | lines_tail, | 228 | lines_tail, |
228 | line); | 229 | line); |
229 | line->local_line = ntohl (msg->line); | 230 | line->local_line = ntohl (msg->line); |
230 | GNUNET_SERVER_client_set_user_context (client, line); | ||
231 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 231 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
232 | } | 232 | } |
233 | 233 | ||
@@ -478,6 +478,9 @@ handle_client_call_message (void *cls, | |||
478 | return; | 478 | return; |
479 | } | 479 | } |
480 | line = GNUNET_new (struct Line); | 480 | line = GNUNET_new (struct Line); |
481 | line->client = client; | ||
482 | GNUNET_SERVER_client_set_user_context (client, line); | ||
483 | GNUNET_SERVER_notification_context_add (nc, client); | ||
481 | line->target = msg->target; | 484 | line->target = msg->target; |
482 | GNUNET_CONTAINER_DLL_insert (lines_head, | 485 | GNUNET_CONTAINER_DLL_insert (lines_head, |
483 | lines_tail, | 486 | lines_tail, |
@@ -509,7 +512,6 @@ handle_client_call_message (void *cls, | |||
509 | &ring->purpose, | 512 | &ring->purpose, |
510 | &ring->signature); | 513 | &ring->signature); |
511 | GNUNET_MQ_send (line->reliable_mq, e); | 514 | GNUNET_MQ_send (line->reliable_mq, e); |
512 | GNUNET_SERVER_client_set_user_context (client, line); | ||
513 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 515 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
514 | } | 516 | } |
515 | 517 | ||