]> sjero.net Git - wget/blobdiff - src/mswindows.c
[svn] Made thread_hnd non-static.
[wget] / src / mswindows.c
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 ();