gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5595 - GNUnet/src/transports


From: gnunet
Subject: [GNUnet-SVN] r5595 - GNUnet/src/transports
Date: Wed, 5 Sep 2007 05:59:07 -0600 (MDT)

Author: grothoff
Date: 2007-09-05 05:59:06 -0600 (Wed, 05 Sep 2007)
New Revision: 5595

Modified:
   GNUnet/src/transports/http.c
Log:
check for -1

Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c        2007-09-05 11:47:05 UTC (rev 5594)
+++ GNUnet/src/transports/http.c        2007-09-05 11:59:06 UTC (rev 5595)
@@ -1709,6 +1709,7 @@
       if (mhd_daemon != NULL)
         have_tv = MHD_get_timeout (mhd_daemon, &timeout);
       if ((CURLM_OK == curl_multi_timeout (curl_multi, &ms)) &&
+         (ms != -1) &&
           ((ms < timeout) || (have_tv == MHD_NO)))
         {
           timeout = ms;
@@ -1953,10 +1954,11 @@
 donetransport_http ()
 {
   GC_detach_change_listener (coreAPI->cfg, &reloadConfiguration, NULL);
-  if (stats != NULL) {
-    coreAPI->releaseService (stats);
-    stats = NULL;
-  }
+  if (stats != NULL)
+    {
+      coreAPI->releaseService (stats);
+      stats = NULL;
+    }
   if (upnp != NULL)
     {
       coreAPI->releaseService (upnp);





reply via email to

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