no log on shutdown
authorChristian Grothoff <christian@grothoff.org>
Fri, 14 May 2010 15:11:39 +0000 (15:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 14 May 2010 15:11:39 +0000 (15:11 +0000)
src/arm/gnunet-service-manager.c

index 81fb730c778aeeb80de95cbad703a2dfe799d25a..be8aa3246d6b7d688828b5e2b25b3aa397d92e11 100644 (file)
@@ -484,9 +484,10 @@ start_forwarding (void *cls,
   if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
     {
       /* Service is not up. Unable to proceed */
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 _("Unable to start service `%s': timeout\n"),
-                 fc->listen_info->serviceName);
+      if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
+       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                   _("Unable to start service `%s': timeout\n"),
+                   fc->listen_info->serviceName);
       closeClientAndServiceSockets (fc,
                                    (REASON_CLIENT & REASON_SERVICE));
       return;