From ef5aae5601f9d2c1a149f8d2950d2ce577f119c8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 10 Nov 2009 20:20:32 +0000 Subject: do not log if response was missed due to shutdown of our own process --- src/arm/arm_api.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/arm') diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index bc80b779f..29d160147 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c @@ -245,11 +245,12 @@ handle_response (void *cls, const struct GNUNET_MessageHeader *msg) if (msg == NULL) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - _("Error receiving response to `%s' request from ARM service\n"), - (sc->type == GNUNET_MESSAGE_TYPE_ARM_START) - ? "START" - : "STOP"); + if (0 == (GNUNET_SCHEDULER_REASON_SHUTDOWN & GNUNET_SCHEDULER_get_reason (sc->h->sched))) + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + _("Error receiving response to `%s' request from ARM service\n"), + (sc->type == GNUNET_MESSAGE_TYPE_ARM_START) + ? "START" + : "STOP"); GNUNET_CLIENT_disconnect (sc->h->client); sc->h->client = GNUNET_CLIENT_connect (sc->h->sched, "arm", -- cgit v1.2.3