From eae47ba86a28df58f9449bf9d0917592ed1eed34 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 1 Apr 2013 18:27:35 +0000 Subject: [PATCH] - fix 2851 --- src/arm/arm_api.c | 9 ++++----- 1 file 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) LOG (GNUNET_ERROR_TYPE_DEBUG, "Request pending, not processing queue\n"); return; } - if (NULL != h->control_pending_head) - msize = - ntohs (((struct GNUNET_MessageHeader *) &h-> - control_pending_head[1])->size); - else if (GNUNET_NO == ignore_currently_down) + if (NULL == h->control_pending_head) { LOG (GNUNET_ERROR_TYPE_DEBUG, "Request queue empty, not processing queue\n"); return; /* no pending message */ } + msize = + ntohs (((struct GNUNET_MessageHeader *) &h-> + control_pending_head[1])->size); h->cth = GNUNET_CLIENT_notify_transmit_ready (h->client, msize, GNUNET_TIME_UNIT_FOREVER_REL, -- 2.25.1