aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-04-01 18:27:35 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-04-01 18:27:35 +0000
commiteae47ba86a28df58f9449bf9d0917592ed1eed34 (patch)
treea38a0166ca83dbca82a4fa3c3642ee978f3111f6 /src
parent4e3864ec2681a43fb13f5d6af6093ebed5a68196 (diff)
downloadgnunet-eae47ba86a28df58f9449bf9d0917592ed1eed34.tar.gz
gnunet-eae47ba86a28df58f9449bf9d0917592ed1eed34.zip
- fix 2851
Diffstat (limited to 'src')
-rw-r--r--src/arm/arm_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index 0e96398de..8c4192f79 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -360,16 +360,15 @@ trigger_next_request (struct GNUNET_ARM_Handle *h, int ignore_currently_down)
360 LOG (GNUNET_ERROR_TYPE_DEBUG, "Request pending, not processing queue\n"); 360 LOG (GNUNET_ERROR_TYPE_DEBUG, "Request pending, not processing queue\n");
361 return; 361 return;
362 } 362 }
363 if (NULL != h->control_pending_head) 363 if (NULL == h->control_pending_head)
364 msize =
365 ntohs (((struct GNUNET_MessageHeader *) &h->
366 control_pending_head[1])->size);
367 else if (GNUNET_NO == ignore_currently_down)
368 { 364 {
369 LOG (GNUNET_ERROR_TYPE_DEBUG, 365 LOG (GNUNET_ERROR_TYPE_DEBUG,
370 "Request queue empty, not processing queue\n"); 366 "Request queue empty, not processing queue\n");
371 return; /* no pending message */ 367 return; /* no pending message */
372 } 368 }
369 msize =
370 ntohs (((struct GNUNET_MessageHeader *) &h->
371 control_pending_head[1])->size);
373 h->cth = 372 h->cth =
374 GNUNET_CLIENT_notify_transmit_ready (h->client, msize, 373 GNUNET_CLIENT_notify_transmit_ready (h->client, msize,
375 GNUNET_TIME_UNIT_FOREVER_REL, 374 GNUNET_TIME_UNIT_FOREVER_REL,