gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35205 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r35205 - gnunet/src/transport
Date: Tue, 10 Feb 2015 12:03:15 +0100

Author: grothoff
Date: 2015-02-10 12:03:15 +0100 (Tue, 10 Feb 2015)
New Revision: 35205

Modified:
   gnunet/src/transport/gnunet-service-transport_validation.c
Log:
-just eliminate useless check, can just be false

Modified: gnunet/src/transport/gnunet-service-transport_validation.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_validation.c  2015-02-10 
00:00:56 UTC (rev 35204)
+++ gnunet/src/transport/gnunet-service-transport_validation.c  2015-02-10 
11:03:15 UTC (rev 35205)
@@ -1664,32 +1664,14 @@
     GNUNET_break (0);
     return;
   }
-  if (ve->in_use == in_use)
-  {
-    if (GNUNET_YES == in_use)
-    {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                  "Error setting address in use for peer `%s' `%s' to USED\n",
-                  GNUNET_i2s (&address->peer),
-                  GST_plugins_a2s (address));
-    }
-    if (GNUNET_NO == in_use)
-    {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                  "Error setting address in use for peer `%s' `%s' to 
NOT_USED\n",
-                  GNUNET_i2s (&address->peer),
-                  GST_plugins_a2s (address));
-    }
-  }
-
-  GNUNET_break (ve->in_use != in_use);  /* should be different... */
   ve->in_use = in_use;
   if (GNUNET_YES == in_use)
   {
     /* from now on, higher frequeny, so reschedule now */
     if (NULL != ve->revalidation_task)
       GNUNET_SCHEDULER_cancel (ve->revalidation_task);
-    ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, ve);
+    ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address,
+                                                      ve);
   }
 }
 




reply via email to

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