]> sjero.net Git - wget/commitdiff
[svn] Made thread_hnd non-static.
authorhniksic <devnull@localhost>
Thu, 9 Feb 2006 12:39:27 +0000 (04:39 -0800)
committerhniksic <devnull@localhost>
Thu, 9 Feb 2006 12:39:27 +0000 (04:39 -0800)
src/ChangeLog
src/mswindows.c

index 14d91354ec819531967bf020fbfea7dc8aa56074..dfc743d1fb033b04cec6bcda88ec0a373b1f339d 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-09  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * mswindows.c (run_with_timeout): Made thread_hnd non-static.
+
 2006-02-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * retr.c (sleep_between_retrievals): Sleep at a minimum of 1/2 of
index 986f1ba49ee6b8dd1c29fcacaa0a89e8bcb32d86..c54a5a4b8b0b594401b69fa2e785b585215dd00d 100644 (file)
@@ -523,7 +523,7 @@ thread_helper (void *arg)
 bool
 run_with_timeout (double seconds, void (*fun) (void *), void *arg)
 {
-  static HANDLE thread_hnd = NULL;
+  HANDLE thread_hnd;
   struct thread_data thread_arg;
   DWORD thread_id;
   bool rc;
@@ -537,9 +537,6 @@ run_with_timeout (double seconds, void (*fun) (void *), void *arg)
       return false;
     }
 
-  /* Should never happen, but test for recursivety anyway.  */
-  assert (thread_hnd == NULL);
-
   thread_arg.fun = fun;
   thread_arg.arg = arg;
   thread_arg.ws_error = WSAGetLastError ();