diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-10 20:20:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-10 20:20:32 +0000 |
commit | ef5aae5601f9d2c1a149f8d2950d2ce577f119c8 (patch) | |
tree | caed5fd367a1f551347cd21c4bfad28742c490bd /src/arm | |
parent | 87c6b3cc7d0b2ee38c5cc97b140c00c1b409ca11 (diff) | |
download | gnunet-ef5aae5601f9d2c1a149f8d2950d2ce577f119c8.tar.gz gnunet-ef5aae5601f9d2c1a149f8d2950d2ce577f119c8.zip |
do not log if response was missed due to shutdown of our own process
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/arm_api.c | 11 |
1 files changed, 6 insertions, 5 deletions
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) | |||
245 | 245 | ||
246 | if (msg == NULL) | 246 | if (msg == NULL) |
247 | { | 247 | { |
248 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 248 | if (0 == (GNUNET_SCHEDULER_REASON_SHUTDOWN & GNUNET_SCHEDULER_get_reason (sc->h->sched))) |
249 | _("Error receiving response to `%s' request from ARM service\n"), | 249 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
250 | (sc->type == GNUNET_MESSAGE_TYPE_ARM_START) | 250 | _("Error receiving response to `%s' request from ARM service\n"), |
251 | ? "START" | 251 | (sc->type == GNUNET_MESSAGE_TYPE_ARM_START) |
252 | : "STOP"); | 252 | ? "START" |
253 | : "STOP"); | ||
253 | GNUNET_CLIENT_disconnect (sc->h->client); | 254 | GNUNET_CLIENT_disconnect (sc->h->client); |
254 | sc->h->client = GNUNET_CLIENT_connect (sc->h->sched, | 255 | sc->h->client = GNUNET_CLIENT_connect (sc->h->sched, |
255 | "arm", | 256 | "arm", |