better
authorChristian Grothoff <christian@grothoff.org>
Tue, 7 Jun 2011 22:00:12 +0000 (22:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 7 Jun 2011 22:00:12 +0000 (22:00 +0000)
src/core/gnunet-service-core.c

index 1f849323ab64aa41c32864e9e3e5f1af40945fa3..9e8766f108d1495a4f320162c82f1326d28cb4b6 100644 (file)
@@ -1656,11 +1656,13 @@ handle_client_request_info (void *cls,
   else
     {
       /* Technically, this COULD happen (due to asynchronous behavior),
-        but it is very odd, so we should at least generate a stern
-        warning */
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 "Client asked for preference change with peer `%s', which is not connected!\n",
+        but it should be rare, so we should generate an info event 
+        to help diagnosis of serious errors that might be masked by this */
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                 _("Client asked for preference change with peer `%s', which is not connected!\n"),
                  GNUNET_i2s (&rcm->peer));
+      GNUNET_SERVER_receive_done (client, GNUNET_OK);
+      return;
     }
   cim.header.size = htons (sizeof (struct ConfigurationInfoMessage));
   cim.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO);