From: Christian Grothoff Date: Tue, 10 Nov 2009 20:20:32 +0000 (+0000) Subject: do not log if response was missed due to shutdown of our own process X-Git-Tag: initial-import-from-subversion-38251~23118 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef5aae5601f9d2c1a149f8d2950d2ce577f119c8;p=oweals%2Fgnunet.git do not log if response was missed due to shutdown of our own process --- 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",