summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 1e1b5e3e63..84e8698897 100644
--- a/vl.c
+++ b/vl.c
@@ -1529,7 +1529,11 @@ int main_loop(void)
timeout = 10;
}
-#ifndef _WIN32
+#ifdef _WIN32
+ if (timeout > 0)
+ Sleep(timeout);
+#else
+
/* poll any events */
/* XXX: separate device handlers from system ones */
pf = ufds;