gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6206 - gnunet-gtk/src/common


From: gnunet
Subject: [GNUnet-SVN] r6206 - gnunet-gtk/src/common
Date: Sat, 9 Feb 2008 13:11:11 -0700 (MST)

Author: grothoff
Date: 2008-02-09 13:11:11 -0700 (Sat, 09 Feb 2008)
New Revision: 6206

Modified:
   gnunet-gtk/src/common/helper.c
Log:
fixing mantis 1311

Modified: gnunet-gtk/src/common/helper.c
===================================================================
--- gnunet-gtk/src/common/helper.c      2008-02-08 22:28:28 UTC (rev 6205)
+++ gnunet-gtk/src/common/helper.c      2008-02-09 20:11:11 UTC (rev 6206)
@@ -462,8 +462,11 @@
     }
   else
     {
+      i = 0;
       while (GNUNET_SYSERR == GNUNET_semaphore_down (cls.sig, GNUNET_NO))
         {
+         if (i == -1)
+           GNUNET_thread_sleep (50 * GNUNET_CRON_MILLISECONDS);
           GNUNET_mutex_lock (sclock);
           if (pscCount > 0)
             {
@@ -476,11 +479,6 @@
               i = -1;
             }
           GNUNET_mutex_unlock (sclock);
-          if ((i == -1)
-              && (GNUNET_OK != GNUNET_semaphore_down (cls.sig, GNUNET_NO)))
-            {
-              GNUNET_thread_sleep (50 * GNUNET_CRON_MILLISECONDS);
-            }
         }
     }
   GNUNET_thread_join (doneThread, &retval);





reply via email to

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