LRN: Here's a patch. See if it doesn't break anything for you.
[oweals/gnunet.git] / src / vpn / gnunet-helper-vpn-windows.c
index 690f6fa6370e416c6ee34beebe141fa6cea1751a..0a3bdad164ec8d34abe406e355ef531d763044e2 100644 (file)
@@ -1360,7 +1360,7 @@ run (HANDLE tap_handle)
     }
 #endif
   
-  while (std_out.path_open && tap_write.path_open)
+  while (std_out.path_open || tap_write.path_open)
     {
       /* perform READ from stdin if possible */
       if (std_in.path_open && (!attempt_read_stdin (&std_in, &tap_write)))