aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/conversation_api_call.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-20 21:36:24 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-20 21:36:24 +0000
commit15f29baef45e38424240503af228ca46cd95235c (patch)
tree4c613cef8e10efa18e49476fa8685008e74e65c1 /src/conversation/conversation_api_call.c
parentc56383042a5948c39c1cc84520d584cf166fad30 (diff)
downloadgnunet-15f29baef45e38424240503af228ca46cd95235c.tar.gz
gnunet-15f29baef45e38424240503af228ca46cd95235c.zip
-this should fix #3228 (communicate conversation/reconnect errors to client)
Diffstat (limited to 'src/conversation/conversation_api_call.c')
-rw-r--r--src/conversation/conversation_api_call.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conversation/conversation_api_call.c b/src/conversation/conversation_api_call.c
index 418af0b73..16173a4fb 100644
--- a/src/conversation/conversation_api_call.c
+++ b/src/conversation/conversation_api_call.c
@@ -416,6 +416,8 @@ handle_gns_response (void *cls,
416 struct GNUNET_MQ_Envelope *e; 416 struct GNUNET_MQ_Envelope *e;
417 struct ClientCallMessage *ccm; 417 struct ClientCallMessage *ccm;
418 418
419 GNUNET_break (NULL != call->gns_lookup);
420 GNUNET_break (CS_LOOKUP == call->gns_lookup);
419 call->gns_lookup = NULL; 421 call->gns_lookup = NULL;
420 for (i=0;i<rd_count;i++) 422 for (i=0;i<rd_count;i++)
421 { 423 {
@@ -516,8 +518,10 @@ reconnect_call (struct GNUNET_CONVERSATION_Call *call)
516 } 518 }
517 call->state = CS_SHUTDOWN; 519 call->state = CS_SHUTDOWN;
518 call->client = GNUNET_CLIENT_connect ("conversation", call->cfg); 520 call->client = GNUNET_CLIENT_connect ("conversation", call->cfg);
519 if (NULL == call->client) 521 if (NULL == call->client);
520 return; 522 return;
523 call->event_handler (call->event_handler_cls,
524 GNUNET_CONVERSATION_EC_CALL_ERROR);
521 call->mq = GNUNET_MQ_queue_for_connection_client (call->client, 525 call->mq = GNUNET_MQ_queue_for_connection_client (call->client,
522 handlers, 526 handlers,
523 &call_error_handler, 527 &call_error_handler,