gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7335 - GNUnet/src/applications/dht/tools


From: gnunet
Subject: [GNUnet-SVN] r7335 - GNUnet/src/applications/dht/tools
Date: Thu, 26 Jun 2008 11:13:41 -0600 (MDT)

Author: grothoff
Date: 2008-06-26 11:13:41 -0600 (Thu, 26 Jun 2008)
New Revision: 7335

Modified:
   GNUnet/src/applications/dht/tools/dht_api.c
Log:
fx

Modified: GNUnet/src/applications/dht/tools/dht_api.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_api.c 2008-06-26 17:09:33 UTC (rev 
7334)
+++ GNUnet/src/applications/dht/tools/dht_api.c 2008-06-26 17:13:41 UTC (rev 
7335)
@@ -38,11 +38,12 @@
 
   while (info->aborted == GNUNET_NO)
     {
-      if (GNUNET_client_connection_test_connected (info->sock) == 0)
-        break;
       reply = NULL;
       if (GNUNET_OK != GNUNET_client_connection_read (info->sock, &reply))
-        break;
+       {
+         GNUNET_GE_BREAK(NULL, info->aborted != GNUNET_NO);        
+         break;
+       }
       if ((sizeof (CS_dht_request_put_MESSAGE) > ntohs (reply->size)) ||
           (GNUNET_CS_PROTO_DHT_REQUEST_PUT != ntohs (reply->type)))
         {
@@ -120,10 +121,7 @@
   req.type = htonl (type);
   req.key = *key;
   if (GNUNET_OK != GNUNET_client_connection_write (ctx->sock, &req.header))
-    {
-      return GNUNET_SYSERR;
-    }
-
+    return GNUNET_SYSERR;   
   return GNUNET_OK;
 }
 
@@ -149,10 +147,7 @@
   req.type = htonl (type);
   req.key = *key;
   if (GNUNET_OK != GNUNET_client_connection_write (ctx->sock, &req.header))
-    {
-      return GNUNET_SYSERR;
-    }
-
+    return GNUNET_SYSERR;
   return GNUNET_OK;
 
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]